Part Number Hot Search : 
CM6903A 1N5522A 1021T1 08JR5 LP2950C FDS7066 80400 LX1670
Product Description
Full Text Search
 

To Download WM8350GEBV Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  w wm8350 wolfson audioplus? stereo codec with power management wolfson microelectronics plc to receive regular email updates, sign up at http://www.wolfsonmicro.com/enews production data, march 2010, rev 4.2 copyright ? 2010 wolfson microelectronics plc description the wm8350 is an integrated audio and power management subsystem which provides a cost effective, single-chip solution for portable audio and multimedia systems. the integrated audio codec provides all the necessary functions for high-quality stereo recording and playback. programmable on-chip amplifiers allow for the direct connection of headphones and microphones with a minimum of external components. a programmable low-noise bias voltage is available to feed one or more electret microphones. additional audio features include programmable high-pass filter in the adc input path. the wm8350 includes six programmable dc-dc converters, four low-dropout (ldo) regulators and a current limit switch to generate suitable supply voltages for each part of the system, including the integrated audio codec as well as off-chip components such as a digital core and i/o supplies, and led lighting. an additional on-chip regulator maintains the backup power for always-on functions. the wm8350 can be powered by a lithium battery, by a wall adaptor or usb. an on-chip battery charger supports both trickle charging and fast (constant current, constant voltage) charging of single-cell lithium batteries. the charge current, termination voltage, and charger time-out are programmable to suit different types of batteries. internal power management circuitry controls the start-up and shutdown sequencing of clocks and supply voltages. it also detects and handles conditions such as under-voltage, extreme temperatures, and deeply discharged or defective batteries, with a minimum of software involvement. two programmable constant-current sinks are available for driving led strings, e.g. for display backlights or photo-flash applications, in a highly power-efficient way. additional rgb leds can be driven through gpio pins. the wm8350 includes a 32.768khz crystal oscillator, an internal rc oscillator, a real-time clock (rtc) and an alarm function capable of waking up the system. internal circuitry can generate all clock signals required to start up the device. the master clock for the audio codec can be input directly, or may be generated internally using an integrated, low power frequency locked loop (fll). to extend battery life, fine-grained power management enables each function in the wm8350 to be independently powered down through the control interface. the wm8350 forms part of the wolfson audioplus tm series of audio and power management solutions. features stereo hi-fi codec ? dac snr 95db (?a? weighted @ 48khz), thd ?81db ? adc snr 95db (?a? weighted @ 48khz), thd ?83db ? 40mw on-chip headphone driver with ?capless? option ? 16 ? headphone load: thd -72db, po = 20mw ? 2 differential microphone inputs with low-noise bias voltage and programmable preamps ? programmable high-pass filter for adc ? microphone and headphone detection ? auxiliary inputs for analogue signals ? sample rates: 8, 11.025, 16, 22.05, 24, 32, 44.1 or 48khz system control ? support for 2-wire or 3-/4-wire control interface ? handles power sequencing, reset signals and fault conditions ? autonomous power source selection (battery, wall adaptor or usb bus) ? total current drawn from usb bus is limited to comply with usb 2.0 standard and usb otg supplement supply generation ? 2 x dc-dc buck converters (0.85v - 3.4v, up to 1a) ? 2 x dc-dc buck converters (0.85v - 3.4v, up to 500ma) ? 2 x dc-dc boost converters (5v - 20v, 40 to 200ma) ? 4 x ldo voltage regulators (0.9v - 3.3v, 150ma) led drivers ? 2 programmable constant-current sinks, suitable for screen backlight or white led photo flash ? 3 open-drain outputs for rgb leds battery charger ? single-cell li-ion / li-pol battery charger ? thermal protection for charge control; temperature monitoring available for thermal regulation ? led outputs to indicate charge status and fault conditions additional features ? ?always on? rtc with wake-up alarm ? watchdog timer ? up to 13 configurable gpio pins ? on-chip crystal oscillator and internal rc oscillator ? low power fll supporting wide range of input clo cks ? 7x7mm, 129 bga package, 0.5mm ball pitch applications ? portable audio and media players ? portable navigation devices ? portable systems powered by single-cell lithium batteries
wm8350 production data w pd, march 2010, rev 4.2 2 typical applications the wm8350 is a complete audio and power management solution for portable media devices. the device incorporates four programmable step-down switching regulators, two step-up switching regulators, a full-featured battery charger, four low drop-out (ldo) voltage regulators which can also serve as hot-swap outputs, a backup supply regulator, two programmable white led drivers, a real-time clock (rtc) alongside a 32.768khz (32khz) oscillator capable of operating from a backup battery, a 12-bit auxiliary adc for precise measurements, a rom-programmable power management state machine and numerous protection features all in a single 7x7mm bga package. when only battery power is available, a battery switch provides power to all switching regulators (and some other internal modules). when external power is applied (eg. from usb or wall adapter), the wm8350 seamlessly transitions from battery power (a single-cell lithium battery) to the applicable external supply. the battery charger is then activated, all internal power for the device is drawn from the appropriate external power source and the battery is disconnected from the load. maximum battery charge current and charge time are programmable. the usb power manager provides accurate current limiting for the usb pin under all conditions. the hot-swap outputs (ldos in current- limited ?switch mode? operation) are ideal for powering memory cards and other devices that can be inserted while the system is fully powered. the integrated hi-fi stereo codec incorporates preamps and a low-noise bias voltage for differential microphones, and flexible pseudo-differential drivers for headphone and differential/single- ended line outputs. external component requirements are reduced as no separate microphone or headphone amplifiers are required. digital filter options are available in the adc and dac paths, to cater for application filtering. the wm8350 is capable of operating without any external clock, as it can derive all required clocks from its internal crystal oscillator, rc clock, and frequency locked loop. an external low jitter clock may be required in some applications for high performance audio.
production data wm8350 w pd, march 2010, rev 4.2 3 block diagram
wm8350 production data w pd, march 2010, rev 4.2 4 table of contents description ....................................................................................................... 1 features............................................................................................................. 1 applications ..................................................................................................... 1 typical applications ..................................................................................... 2 block diagram ................................................................................................. 3 table of contents ......................................................................................... 4 1 pin configuration .................................................................................. 9 2 ordering information .......................................................................... 9 3 pin description ...................................................................................... 10 4 thermal characteristics ................................................................. 13 5 absolute maximum ratings .............................................................. 14 6 recommended operating conditions ........................................... 15 7 electrical characteristics ............................................................ 16 7.1 hi-fi audio codec ......................................................................................... 16 7.2 dc-dc step up converter electrical characteristics ............... 18 7.3 dc-dc step down converter electrical characteristics ........ 19 7.4 ldo regulator electrical characteristics ................................... 21 7.5 battery charger ........................................................................................ 22 7.6 current limit switch ................................................................................ 22 7.7 led drivers ................................................................................................... 23 7.8 general purpose inputs / outputs (gpio) ......................................... 23 7.9 digital interfaces ..................................................................................... 24 7.10 auxiliary adc ............................................................................................ 24 8 typical power consumption ............................................................ 25 9 typical performance data ............................................................... 27 9.1 audio codec .................................................................................................. 27 9.2 dc-dc converters ...................................................................................... 28 9.2.1 power efficiency ............................................................................................................. 28 9.2.2 output voltage regulation ........................................................................................ 29 9.2.3 dynamic output voltage ............................................................................................... 30 9.3 ldo regulators .......................................................................................... 31 10 signal timing requirements ............................................................. 32 10.1 system clock timing .............................................................................. 32 10.2 audio interface timing - master mode ............................................ 32 10.3 audio interface timing - slave mode ................................................ 33 10.4 audio interface timing - tdm mode ................................................... 34 10.5 control interface timing .................................................................... 35 11 control interface .............................................................................. 38 11.1 general description ............................................................................. 38 11.2 control interface modes ................................................................... 38 11.3 2-wire serial control mode ............................................................... 39 11.4 3-wire serial control mode ............................................................... 42 11.5 4-wire serial control mode ............................................................... 43 11.6 register locking .................................................................................... 44 11.7 special registers ................................................................................... 44 11.7.1 chip id ....................................................................................................................... ......... 44 11.7.2 device information ...................................................................................................... 44
production data wm8350 w pd, march 2010, rev 4.2 5 12 clocking, timing and sample rates .............................................. 45 12.1 general description ............................................................................. 45 12.1.1 clocking the audio codec ........................................................................................ 46 12.1.2 clocking the dc-dc converters ............................................................................ 46 12.1.3 internal rc oscillator .............................................................................................. 46 12.2 crystal oscillator ................................................................................ 46 12.3 clocking and sample rates ................................................................ 47 12.3.1 sysclk control............................................................................................................. 49 12.3.2 adc / dac sample rates ............................................................................................... 50 12.3.3 bclk control ................................................................................................................. 52 12.3.4 adclrclk / daclrclk control ................................................................................. 54 12.3.5 opclk control .............................................................................................................. 55 12.3.6 slowclk control ......................................................................................................... 55 12.4 fll ................................................................................................................. 55 12.4.1 example fll calculation ........................................................................................... 58 12.4.2 example fll settings .................................................................................................. 59 13 audio codec subsystem ..................................................................... 60 13.1 general description ............................................................................. 60 13.2 audio paths ............................................................................................... 61 13.3 enabling the audio codec ................................................................... 62 13.4 input signal path .................................................................................... 63 13.4.1 microphone inputs ...................................................................................................... 63 13.4.2 enabling the pre-amplifiers .................................................................................... 64 13.4.3 selecting input signals ............................................................................................. 65 13.4.4 controlling the pre-amplifier gains ................................................................... 66 13.4.5 microphone biasing ..................................................................................................... 67 13.4.6 auxiliary inputs (in3l and in3r) ................................................................................ 67 13.4.7 input mixers .................................................................................................................. .. 69 13.5 analogue to digital converter (adc) ............................................. 71 13.5.1 adc volume control ................................................................................................... 72 13.5.2 adc high-pass filter.................................................................................................... 72 13.6 digital mixing ............................................................................................ 73 13.6.1 digital sidetone ............................................................................................................ 7 3 13.7 digital to analogue converter (dac) ............................................. 75 13.7.1 dac playback volume control ............................................................................... 76 13.7.2 dac soft mute and soft un-mute ............................................................................ 76 13.7.3 dac de-emphasis ............................................................................................................ 77 13.7.4 dac output phase and mono mixing ....................................................................... 78 13.7.5 dac stopband attenuation ....................................................................................... 78 13.8 output signal path ................................................................................ 79 13.8.1 enabling the analogue outputs ............................................................................ 79 13.8.2 output mixers ................................................................................................................ 80 13.9 analogue outputs .................................................................................. 83 13.9.1 out1l and out1r ............................................................................................................ 83 13.9.2 out2l and out2r ............................................................................................................ 85 13.9.3 headphone outputs external connections ..................................................... 87 13.9.4 out3 and out4 ................................................................................................................ 89 13.10 digital audio interface ........................................................................ 91 13.10.1 audio data formats ..................................................................................................... 91 13.10.2 audio interface tdm mode ........................................................................................ 94 13.10.3 tdm data formats......................................................................................................... 94 13.10.4 loopback ...................................................................................................................... ... 96 13.11 companding ............................................................................................... 97 13.12 additional codec functions ............................................................... 99
wm8350 production data w pd, march 2010, rev 4.2 6 13.12.1 headphone jack detect ............................................................................................. 99 13.12.2 microphone detection ............................................................................................. 100 13.12.3 mid-rail reference (vmid) ........................................................................................ 101 13.12.4 anti-pop control ........................................................................................................ 102 13.12.5 unused analogue inputs/outputs ....................................................................... 103 13.12.6 zero cross timeout .................................................................................................. 105 13.12.7 interrupts and fault protection ....................................................................... 105 14 power management subsystem .................................................... 106 14.1 general description ........................................................................... 106 14.2 power management operating states ......................................... 106 14.2.1 hibernate state selection ..................................................................................... 107 14.3 power sequencing and control .................................................... 108 14.3.1 startup ....................................................................................................................... ... 108 14.3.2 power-up sequencing .............................................................................................. 109 14.3.3 shutdown ...................................................................................................................... 110 14.3.4 power cycling ............................................................................................................ 111 14.3.5 register reset ............................................................................................................ 111 14.3.6 reset signals ............................................................................................................... 112 14.4 development mode ............................................................................... 114 14.4.1 control interface redirection ........................................................................... 114 14.4.2 starting up in development mode ....................................................................... 115 14.4.3 configuring the wm8350 in development mode .............................................. 117 14.5 custom modes ........................................................................................ 119 14.5.1 configuration mode 01 ............................................................................................ 119 14.5.2 configuration mode 10 ............................................................................................ 122 14.5.3 configuration mode 11 ............................................................................................ 125 14.6 configuring the dc-dc converters .............................................. 128 14.6.1 dc-dc converter enable ......................................................................................... 128 14.6.2 clocking ...................................................................................................................... .. 129 14.6.3 dc-dc buck (step-down) converter control.................................................. 129 14.6.4 dc-dc boost (step-up) converter control...................................................... 132 14.6.5 interrupts and fault protection ....................................................................... 134 14.7 configuring the ldo regulators .................................................. 137 14.7.1 ldo regulator enable ............................................................................................. 137 14.7.2 ldo regulator control .......................................................................................... 138 14.7.3 interrupts and fault protection ....................................................................... 140 14.7.4 additional control for ldo1 ................................................................................ 141 14.8 dc-dc converter operation ............................................................. 142 14.8.1 overview....................................................................................................................... . 142 14.8.2 dc-dc step down converters ............................................................................... 143 14.8.3 dc-dc step up converters...................................................................................... 144 14.9 ldo regulator operation ................................................................. 145 15 current limit switch ........................................................................ 146 15.1 general description ........................................................................... 146 15.2 configuring the current limit switch ......................................... 146 15.2.1 current limit switch enable ................................................................................. 146 15.2.2 current limit switch bulk detection control .............................................. 147 15.2.3 interrupts and fault protection ....................................................................... 147 16 current sinks (led drivers) .......................................................... 149 16.1 general description ........................................................................... 149 16.2 constant-current sinks .. .................................................................. 149 16.2.1 enabling the sink current ..................................................................................... 149 16.2.2 programming the sink current ............................................................................ 150 16.2.3 flash mode .................................................................................................................... 150 16.2.4 on/off ramp timing ..................................................................................................... 152
production data wm8350 w pd, march 2010, rev 4.2 7 16.2.5 interrupts and fault protection ....................................................................... 152 16.3 open-drain led outputs ..................................................................... 153 16.4 led driver connections ..................................................................... 153 17 power supply control .................................................................... 154 17.1 general description ........................................................................... 154 17.2 battery powered operation ............................................................ 155 17.3 wall adaptor (line) powered operation ..................................... 155 17.4 usb powered operation ..................................................................... 156 17.5 external interrupts ........................................................................... 158 17.6 backup power ........................................................................................ 158 17.7 battery charger .................................................................................. 159 17.7.1 general description ................................................................................................. 159 17.7.2 battery charger enable ......................................................................................... 160 17.7.3 trickle charging ........................................................................................................ 161 17.7.4 fast charging .............................................................................................................. 16 3 17.7.5 battery charger timeout and termination ..................................................... 165 17.7.6 battery charger status ......................................................................................... 166 17.7.7 battery fault conditions ....................................................................................... 167 17.7.8 interrupts and fault protection ....................................................................... 169 18 system monitoring and undervoltage lockout (uvlo) ..... 170 19 auxiliary adc ........................................................................................ 172 19.1 general description ........................................................................... 172 19.2 initiating auxadc measurements .................................................... 173 19.3 voltage scaling and references ................................................... 175 19.4 auxadc readback .................................................................................. 176 19.5 calibration .............................................................................................. 178 19.6 digital comparators ........................................................................... 179 19.7 auxadc interrupts ............................................................................... 180 20 general purpose inputs / outputs (gpio) ................................. 181 20.1 general description ........................................................................... 181 20.1.1 configuring gpio pins .............................................................................................. 182 20.1.2 input de-bounce .......................................................................................................... 183 20.1.3 gpio interrupts .......................................................................................................... 183 20.2 gpio alternate functions ................................................................. 184 20.2.1 list of alternate functions .................................................................................. 184 20.2.2 selecting gpio alternate functions ................................................................. 187 21 voltage references ......................................................................... 191 21.1 main reference (vref) ......................................................................... 191 21.2 low-power reference ........................................................................ 191 22 real-time clock (rtc) ........................................................................ 192 22.1 general description ........................................................................... 192 22.2 rtc control ............................................................................................ 192 22.2.1 modes of operation .................................................................................................. 192 22.2.2 rtc time registers ..................................................................................................... 192 22.2.3 setting the time .......................................................................................................... 193 22.2.4 rtc alarm registers ................................................................................................. 193 22.2.5 setting the alarm ...................................................................................................... 195 22.3 trimming the rtc ................................................................................... 195 22.4 rtc gpio output..................................................................................... 197 22.5 rtc interrupts ...................................................................................... 198 23 watchdog timer .................................................................................. 199 24 interrupt controller ..................................................................... 201 24.1 configuring the irq pin ...................................................................... 201
wm8350 production data w pd, march 2010, rev 4.2 8 24.2 first-level interrupts .. ..................................................................... 202 24.3 second-level interrupts .................................................................. 203 24.3.1 overcurrent interrupt .......................................................................................... 203 24.3.2 undervoltage interrupts ...................................................................................... 203 24.3.3 current sink (led driver) interrupts ................................................................ 204 24.3.4 external interrupts ................................................................................................ 205 24.3.5 codec interrupts ...................................................................................................... 205 24.3.6 gpio interrupts .......................................................................................................... 206 24.3.7 auxadc and digital comparator interrupts ................................................... 207 24.3.8 rtc interrupts ............................................................................................................ 207 24.3.9 system interrupts ..................................................................................................... 208 24.3.10 charger interrupts ................................................................................................. 208 24.3.11 usb interrupts ............................................................................................................ 209 24.3.12 wake-up interrupts .................................................................................................. 210 25 temperature sensing ....................................................................... 211 25.1 chip temperature monitoring ......................................................... 211 26 register map ........................................................................................ 212 26.1 overview .................................................................................................. 212 27 register bits by address................................................................ 223 28 digital filter characteristics ..................................................... 327 28.1 dac filter responses .......................................................................... 327 28.2 adc filter responses .......................................................................... 328 29 applications information ............................................................... 329 29.1 typical connections ........................................................................... 329 29.2 voltage reference (vref) components ....................................... 330 29.3 dc-dc (step-down) converter external components ............ 330 29.4 dc-dc (step-up) converter external components .................. 332 29.4.1 dc-dc (step-up) converters - constant voltage mode ............................... 332 29.4.2 dc-dc (step-up) converters - constant current mode .............................. 334 29.4.3 dc-dc (step-up) converters - usb mode ............................................................. 335 29.4.4 dc-dc (step-up) converters recommended components ........................... 335 29.5 ldo regulator external components ......................................... 336 29.6 pcb layout ............................................................................................... 337 30 package diagram ................................................................................ 338 31 important notice ................................................................................ 339
production data wm8350 w pd, march 2010, rev 4.2 9 1 pin configuration 12345678910111213 a vp5 pg5 o p pv1 l1 pg1 pg6 l6 pv6 fb6 gpio12 fb2 pg2 b l5 ngate5 ip pv1 l1 pg1 pg6 l6 pv6 pvdd gpio10 ngate2 vp2 c l4 pg4 fb4 fb5 linedcd c fb1 gnd gnd aux4 gpio11 pgnd pg3 l2 d pv4 batt hivdd n/a n/a n/a n/a n/a n/a n/a fb3 pv3 l3 e batt batt wallfb n/a n/a n/a n/a n/a n/a n/a isinka isinkb sinkgnd f line line line n/a n/a gnd gnd gnd n/a n/a vout4 ldovdd vinb g usb usb usb n/a n/a gnd gnd gnd n/a n/a vout2 vout3 vina h vrtc lineint cref n/a n/a gnd gnd gnd n/a n/a aux1 vout1 aux3 j conf0 x1 rref n/a n/a n/a n/a n/a n/a n/a out1r hpcom aux2 k conf1 on x2 n/a n/a n/a n/a n/a n/a n/a out1l out4 hpvdd l gpio0 /rst swvrtc irq gpio5 gpio8 gpio9 bclk lrclk in3l in1ln out3 hpgnd m gpio2 gpio1 sda gpio6 dgnd mclk adcdata avdd in3r inl2 micbias out2r out2l n gpio3 scl gpio4 gpio7 dcvdd dbvdd dacdata refgnd vmid in1lp inr2 in1rp in1rn 7mm x 7mm bga 1 z notes: pin names beginning with a lower-case "n" indicate that the pin is active low. colour coding indicates function of pins in typical usage: dc-dc converters ldo voltage regulators power management functions analogue pins for audio codec digital pins for audio codec quiet ground others 2 ordering information order code temperature range package moisture sensitivity level peak soldering temperature wm8350geb/v -25 c to +85 c 129-ball bga (7 x 7 mm) (pb-free) msl3 260 o c wm8350geb/rv -25 c to +85 c 129-ball bga (7 x 7 mm) (pb-free, tape and reel) msl3 260 o c note: reel quantity = 2,200
wm8350 production data w pd, march 2010, rev 4.2 10 3 pin description notes: pins are listed in alphabetical order by name. name location(s) type power domain description adcdata m7 digital output dbvdd digital audio output (typically from on-chip audio adc to external ic) aux1 h11 analogue input line auxiliary adc input aux1 (special function for connection to temperature-sensing ntc resistor in battery pack) aux2 j13 analogue input line auxiliary adc input aux2 aux3 h13 analogue input line auxiliary adc input aux3 aux4 c9 analogue input line auxiliary adc input aux4 avdd m8 supply analogue supply for audio codec batt e1, e2, d2 analogue i/o main battery power connection (can draw power or charge battery) bclk l8 digital i/o dbvdd bit clock signal for digital audio interface cref h3 analogue output vrtc decoupling for vref reference voltage (connect capacitor here) conf0 j1 digital input vrtc start-up configuration pin 0 conf1 k1 digital input vrtc start-up configuration pin 1 dacdata n7 digital input dbvdd digital audio input (typically from external ic to on-chip audio dac) dcvdd n5 supply digital core supply; powers digital core of audio codec dbvdd n6 supply digital i/o buffer supply; powers digital audio interface, control interface and pins gpio4 to gpio9 dgnd m5 supply digital ground; return path for dcvdd and dbvdd supplies fb1 c6 analogue input pv1 dc-dc1 feedback pin fb2 a12 analogue input vp2 dc-dc2 feedback pin fb3 d11 analogue input pv3 dc-dc3 feedback pin fb4 c3 analogue input pv4 dc-dc4 feedback pin fb5 c4 analogue input vp5 dc-dc5 feedback pin fb6 a10 analogue input pv6 dc-dc6 feedback pin gnd f6, f7, f8, g6,g7, g8, h6, h7, h8, c7, c8 supply quiet ground connection for audio codec. note that dc-dc converters use a separate ground connection. gpio0 l1 digital i/o vrtc general purpose input/output pin 0 gpio1 m2 digital i/o vrtc general purpose input/output pin 1 gpio2 m1 digital i/o vrtc general purpose input/output pin 2 gpio3 n1 digital i/o vrtc general purpose input/output pin 3 gpio4 n3 digital i/o dbvdd general purpose input/output pin 4 gpio5 l5 digital i/o dbvdd general purpose input/output pin 5 gpio6 m4 digital i/o dbvdd general purpose input/output pin 6 gpio7 n4 digital i/o dbvdd general purpose input/output pin 7 gpio8 l6 digital i/o dbvdd general purpose input/output pin 8 gpio9 l7 digital i/o dbvdd general purpose input/output pin 9 gpio10 b11 digital i/o line general purpose input/output pin 10 gpio11 c10 digital i/o line general purpose input/output pin 11 gpio12 a11 digital i/o line general purpose input/ output pin 12 hivdd d3 analogue output analogue output from power management unit which determines highest supply from line, battery or usb. hpcom j12 analogue input hpvdd headphone output amplifier noise compensation input hpgnd l13 supply hpvdd headphone ground; return path for hpvdd supply
production data wm8350 w pd, march 2010, rev 4.2 11 name location(s) type power domain description hpvdd k13 supply headphone supply ? powers the analogue outputs out1l, out1r, out2l, out2r, out3 and out4 in1ln l11 analogue input avdd inverting input for left microphone channel in1lp n10 analogue input avdd non-inverting input 1 for left microphone channel in1rn n13 analogue input avdd inverting input for right microphone channel in1rp n12 analogue input avdd non-inverting input 1 for right microphone channel in2l m10 analogue input avdd non-inverting input 2 for left microphone channel in2r n11 analogue input avdd non-inverting input 2 for right microphone channel in3l l10 analogue input avdd auxiliary input for analogue audio signals (left channel) in3r m9 analogue input avdd auxiliary input for analogue audio signals (right channel) ip b3 analogue input power input to current limit switch isinka e11 analogue output ldovdd constant-current led driver a isinkb e12 analogue output ldovdd constant-current led driver b l1 a5, b5 analogue i/o pv1 dc-dc1 inductor connection l2 c13 analogue i/o vp2 dc-dc2 inductor connection l3 d13 analogue i/o pv3 dc-dc3 inductor connection l4 c1 analogue i/o pv4 dc-dc4 inductor connection l5 b1 analogue i/o vp5 dc-dc5 inductor connection l6 a8, b8 analogue i/o pv6 dc-dc6 inductor connection ldovdd f12 supply ldo amplifier supply voltage linedcdc c5 supply supply connection for dc-dc 1, 4 and 5 control circuits lineint h2 supply supply connection for internal reference circuits line f1, f2, f3 supply line supply connection lrclk l9 digital i/o dbvdd word clock (left/right clock) signal for digital audio interface mclk m6 digital i/o dbvdd master clock (may be generated internally or externally) micbias m11 analogue output avdd low-noise bias voltage for condenser microphones (connect decoupling capacitor here) ngate2 b12 analogue output vp2 dc-dc2 connection to gate of external power fet ngate5 b2 analogue output vp5 dc-dc5 connection to gate of external power fet irq l4 digital output open-drain dbvdd interrupt signal from wm8350 to host processor on k2 digital input vrtc connection for power-on switch /rst l2 digital output open-drain dbvdd system reset signal (active low) op a3 analogue output power output from current limit switch out1l k11 analogue output avdd left channel analogue audio output 1 out2l m13 analogue output avdd left channel analogue audio output 2 out1r j11 analogue output avdd right channel analogue audio output 1 out2r m12 analogue output avdd right channel analogue audio output 2 out3 l12 analogue output avdd analogue audio output 3 (or pseudo-ground output for capacitor-less headphone outputs) out4 k12 analogue output avdd analogue audio output 4 pg1 a6, b6 supply dc-dc1 power ground pg2 a13 supply dc-dc2 power ground pg3 c12 supply dc-dc3 power ground pg4 c2 supply dc-dc4 power ground pg5 a2 supply dc-dc5 power ground pg6 a7, b7 supply dc-dc6 power ground pgnd c11 supply ground connection pv1 a4, b4, supply dc-dc1 line or battery power input pv3 d12 supply dc-dc3 line or battery power input pv4 d1 supply dc-dc4 line or battery power input
wm8350 production data w pd, march 2010, rev 4.2 12 name location(s) type power domain description pv6 a9, b9 supply dc-dc6 power input pvdd b10 supply supply connection for dc-dc 2, 3 and 6 control circuits refgnd n8 supply reference ground for audio adc and dac rref j3 analogue output connection for external 100k ? current reference resistor sclk n2 digital input dbvdd clock signal for 2-wire serial control interface (5v tolerant) sdata m3 digital i/o dbvdd data line for 2-wire serial control interface (5v tolerant) sinkgnd e13 supply ground connection for isinka and isinkb swvrtc l3 analogue output vrtc switchable vrtc output. typically used for battery temperature monitoring usb g1, g2, g3 supply connection to usb power rail vina g13 supply input to voltage regulators ldo1 and ldo2 vinb f13 supply input to voltage regulators ldo3 and ldo4 vmid n9 analogue i/o avdd reference voltage (normally avdd/2) for audio codec (connect capacitor here) vout1 h12 analogue output vina output of voltage regulator ldo1 vout2 g11 analogue output vina output of voltage regulator ldo2 vout3 g12 analogue output vinb output of voltage regulator ldo3 vout4 f11 analogue output vinb output of voltage regulator ldo4 vp2 b13 supply dc-dc2 power input vp5 a1 supply dc-dc5 power input vrtc h1 supply backup power connection (wm8350 can draw power from this pin or re-charge the backup power source) wallfb e3 analogue input line connection to wall feedback x1 j2 analogue input vrtc connection for 32.768khz crystal (input to oscillator from crystal) or 32.768khz external clock input (when not using crystal) x2 k3 analogue output vrtc connection for 32.768khz crystal (output from oscillator to crystal)
production data wm8350 w pd, march 2010, rev 4.2 13 4 thermal characteristics thermal analysis must be performed in the intended application to prevent the wm8350 from exceeding maximum junction temperature. several contributing factors affect thermal performance most notably the physical properties of the mechanical enclosure, location of the device on the pcb in relation to surrounding components and the number of pcb layers. connecting the nine central gnd balls through thermal vias and into a large ground plane will aid heat extraction. three main heat transfer paths exist to surrounding air: - package top to air (radiation). - package bottom to pcb (radiation). - package leads to pcb (conduction). the temperature rise t r is given by t r = p d * ? ja - p d is the power dissipated by the device. - ? ja is the thermal resistance from the junction of the die to the ambient temperature and is therefore a measure of heat transfer from the die to surrounding air. - for wm8350, ? ja = 32 c/w the junction temperature t j is given by t j = t a + t r - t a , is the ambient temperature. the worst case conditions are when the wm8350 is operating in a high ambient temperature, with low supply voltage, high duty cycle and high output current. under such conditions, it is possible that the heat dissipated could exceed the maximum junction temperature of the device. care must be taken to avoid this situation. an example calculation of the junction temperature is given below. - p d = 1w (example figure) - ? ja = 32c/w - t r = p d * ? ja = 32c - t a = 85c (example figure) - t j = t a +t r = 117c the minimum and maximum operating junction temperatures for the wm8350 are quoted in section 5. the maximum junction temperature is 125c. therefore, the junction temperature in the above example is within the operating limits of the wm8350.
wm8350 production data w pd, march 2010, rev 4.2 14 5 absolute maximum ratings absolute maximum ratings are stress ratings only. permanent damage to the device may be caused by continuously operating at or beyond these limits. device functional operating limits and guaranteed performance specifications are given under electrical characteristics at the test conditions specified. esd sensitive device. this device is manufactured on a cmos process. it is therefore generically susceptible to damage from excessive static voltages. proper esd precautions must be taken during handling and storage of this device. wolfson tests its package types according to ipc/jedec j-std-020b for moisture sensitivity to determine acceptable storage conditions prior to surface mount assembly. these levels are: msl1 = unlimited floor life at <30 c / 85% relative humidity. not normally stored in moisture barrier bag. msl2 = out of bag storage for 1 year at <30 c / 60% relative humidity. supplied in moisture barrier bag. msl3 = out of bag storage for 168 hours at <30 c / 60% relative humidity. supplied in moisture barrier bag. the wm8350 has been classified as msl3. condition min max batt, line and usb voltage -0.3v +7v input voltage for ldo regulators (pins vina, vinb) -0.3v +7v analogue supply voltages (avdd, hpvdd) -0.3v +4.5v digital supply voltages (dcvdd, dbvdd) -0.3v +4.5v voltage range for codec analogue inputs -0.3v avdd + 0.3v voltage range for digital inputs -0.3v dbvdd + 0.3v master clock frequency (when mclk_div set to divide by 2) 37mhz operating temperature range, t a -25 c +85 c junction temperature, t j -20 c +125 c thermal impedance junction to ambient, ja 32 c/w storage temperature prior to soldering 30 o c max / 60% rh max storage temperature after soldering -65 c +150 c soldering temperature (10 seconds) +260 c note: these ratings assume that all ground pins are at 0v.
production data wm8350 w pd, march 2010, rev 4.2 15 6 recommended operating conditions parameter symbol min typ max units digital supply range (core) dcvdd 1.71 3.6 v digital supply range (buffer) dbvdd 1.71 3.6 v headphone supply range hpvdd 2.5 3.6 v analogue supply range avdd 2.5 3.6 v line input source line 2.95 5.5 v battery input source batt 2.95 4.2 v usb input source usb 4.75 5.25 v ldo input source vina, vinb 0 5.5 v ground gnd, pgnd, dgnd, hpgnd, refgnd, pg1, pg2, pg3, pg4, pg5, pg6 0 v
wm8350 production data w pd, march 2010, rev 4.2 16 7 electrical characteristics 7.1 hi-fi audio codec test conditions dcvdd = 1.8v, avdd = hpvdd = 3.3v, t a = +25 o c, 1khz signal, fs = 48khz, 24-bit audio data unless otherwise stated. parameter symbol test conditions min typ max unit microphone preamp inputs (in1lp, in1ln, in1rp, in1rn) full-scale input signal level (0db) ? note this changes with avdd v infs 1 0 v rms dbv mic preamp equivalent input noise at 35.25db gain 150 v input resistance r micin gain set to 35.25db 2.3 k input resistance r micin gain set to 0db 64 k input resistance r micin gain set to -12db 101 k input capacitance c micin 2 pf recommended decoupling cap c decoup 0.33 f mic programmable gain amplifier (pga) programmable gain -12 35.25 db programmable gain step size monotonic 0.75 db mute attenuation -90 db selectable input gain boost (0/+20db) gain boost 0 20 db auxiliary analogue inputs (in3l, in3r) full-scale input signal level (0db) ? note this changes with avdd v infs 1.0 0 v rms dbv pga gain range to summer -12 +6 db pga step size to summer 3 db input resistance r auxin 32 k input capacitance c auxin 10 pf analogue to digital converter (adc) signal to noise ratio (note 1, 2) a-weighted, 0db gain 86 95 db total harmonic distortion (note 4) -2dbv input -75 -83 db digital to analogue converter (dac) to line-out (out1l, out1r with 10k / 50pf load) full-scale output pga gains set to 0db hpvdd/3.3 v rms signal to noise ratio (note 1, 2) snr a-weighted 90 95 db total harmonic distortion (note 3) thd+n r l = 10k full-scale signal -75 -81 db channel separation (note 4) 1khz signal 89 db output mixers pga gain range into mixer -15 0 +6 db pga gain step into mixer 3 db analogue output pgas (out1l, out1r, out2l, out2r) programmable gain range -57 0 +6 db programmable gain step size monotonic 1 db mute attenuation 1khz, full scale signal 78 db
production data wm8350 w pd, march 2010, rev 4.2 17 test conditions dcvdd = 1.8v, avdd = hpvdd = 3.3v, t a = +25 o c, 1khz signal, fs = 48khz, 24-bit audio data unless otherwise stated. parameter symbol test conditions min typ max unit headphone output (out1l, out1r, out2l, out2r) 0db full scale output voltage hpvdd/3.3 vrms signal to noise ratio snr a-weighted 87 96 db total harmonic distortion (note 3) thd+n r l = 16 , po=20mw hpvdd=3.3v -65 -72 db r l = 32 , po=20mw hpvdd=3.3v -71 db out3/out4 outputs (with 10k / 50pf load) full-scale output hpvdd/3.3 v rms signal to noise ratio (note 1, 2) snr a-weighted 90 97 db total harmonic distortion (note 3) thd r l = 10k full-scale signal -77 -83 db channel separation (note 4) 5khz signal 80 db microphone bias bias voltage v micbias mbvsel=0 0.9*avdd v mbvsel=1 0.75*avdd v bias current source i micbias 3 ma output noise voltage vn 1khz to 20khz 24 nv/ hz digital input / output input high level v ih 0.7 dbvdd v input low level v il 0.3 dbvdd v output high level v oh i ol =1ma 0.9 dbvdd v output low level v ol i oh -1ma 0.1xdbvdd v frequency locked loop (fll) reference clock frequency f ref 0.032 22 mhz jack detect detection switch threshold v ih 0.7xavdd v v il 0.3xavdd v hpcom ground noise rejection v ih 40 db v il 40 db terminology 1. signal-to-noise ratio (db) = snr is a measure of the difference in level between the full scale output and the output with no signal applied. (no auto-zero or automute function is employed in achieving these results). 2. dynamic range (db) = dr is a measure of the difference between the highest and lowest portions of a signal. normally a thd+n measurement at 60db below full scale. the measured signal is then corrected by adding the 60db to it. (e.g. thd+n @ -60db= -32db, dr= 92db). 3. thd+n (db) = thd+n is a ratio, of the rms values, of (noise + distortion)/signal. 4. channel separation (db) = also known as cross-talk. this is a measure of the amount one channel is isolated from the other. normally measured by sending a full scale signal down one channel and measuring the other.
wm8350 production data w pd, march 2010, rev 4.2 18 7.2 dc-dc step up converter electrical characteristics test conditions t a = +25oc unless otherwise noted. parameter symbol conditions min typ max units dc-dc2 and dc-dc5 input voltage range v in when used as converter 2.7 3.7 5.5 v when used as switch 1.2 output voltage range v out by default (needs external component configuration) v in 20 (30) v usb otg output voltage v out,usb v in <4.5v; i out <100ma; dcn_fbsrc [1:0]=11 5.0 v output current i out v out =30v 0 25 ma v out =20v (dcn_ilim_=1) 40 (18) v out =5.0v (dcn_ilim_=1) 170 (100) switch resistance r on v in =3.3v; v out =3.2v; +25c 0.26 ? v in =1.8v; v out =1.7v; +25c 0.41 v in =1.2v; v out =1.1v; +25c 0.84 maximum switch current i sw,max 700 ma switching frequency f clk 1.0 mhz maximum duty cycle d max v in =3v; f clk =1.0mhz 90 % efficiency v in =3.8v; v out =20v; i out =20ma 75 % v in =3.8v; v out =5.0v; i out =100ma 88 quiescent current i dd shutdown or switch configuration 0.1 ua active; no switching 260 active; pulse skipping 260 regulated feedback voltage v fb dcn_fbsrc [1:0] = 00 0.5 v v curr dcn_fbsrc [1:0] = 01 or 10 0.5 undervoltage detect v fb,uv below feedback voltage 12 % v usb,uv dcn_fbsrc [1:0] = 11 4.6 v overvoltage detect v fb,ov above feedback voltage 8 % v usb,ov dcn_fbsrc [1:0] = 11 5.4 v peak inductor current limit i pk v in =3v; v out =90%; 700 ma dcn_ilim_=1 450 on resistance of ngate driver r ngate p-channel fet (i pfet =100ma) 4.6 ? n-channel fet (i nfet =100ma) 4.9 input capacitor c in x5r/x7r dielectric 1.0 2.2 f inductor l f -30% 10 +30% h inductor current rating i sat,lf 500 ma dcn_ilim_=1 320 output capacitor c out dcn_fbsrc [1:0]= 00 or 11; v out =5v 3.7 10 22 f dcn_fbsrc [1:0]= 00; v out =10v 0.84 2.2 4.7 dcn_fbsrc [1:0]= 00; v out =20v 0.18 0.47 1.0 dcn_fbsrc [1:0]= 01 or 10; v out =10v 2.0 4.7 10 dcn_fbsrc [1:0]= 01 or 10; v out =15v 1.5 2.2 10 dcn_fbsrc [1:0]= 01 or 10; v out =20v 0.9 1.5 4.7
production data wm8350 w pd, march 2010, rev 4.2 19 7.3 dc-dc step down converter electrical characteristics test conditions v in = 3.7, v out = 1.8v, t a = +25oc unless otherwise noted. parameter symbol conditions min typ max units dc-dc1 and dc-dc6 input voltage v in 2.7 3.7 5.5 v output voltage v out 0.85 3.4 v vout accuracy v out v in = 3.7v v out = 0.85v / 1.8v / 3.4v i out = 0.5a active +/- 3.0 % i out = 0.005a sleep -1.5 +4.5 line regulation v out line v in = 2.7v to 5.5v v out = 1.8v i out = 0.5a active +/- 0.5 % i out = 0.1a standby +/- 0.25 i out = 0.005a sleep +/- 0.4 +/- 0.5 load regulation v out load i out = 0.001a to 1a active +/- 0.2 % i out = 0a to 0.1a standby +/- 0.2 i out = 0a to 0.01a sleep +/- 0.3 +/- 0.5 quiescent current i q active active (excluding switching losses) 265 a i q standby standby (excluding switching losses) 115 i qsleep sleep 25 shutdown current i sd 0.01 a p-channel on resistance r dsp v in = 3.7v, i l(n) = 100ma 0.09 ? n-channel on resistance r dsn v in = 3.7v, i l(n) = 100ma 0.167 ? p-channel leakage current i lxp v in = 3.7v, l(n) = gnd 0.01 a n-channel leakage current i lxn v in = 3.7v, l(n) = 3.7v 2.8 a switching frequency f sw 2.0 mhz
wm8350 production data w pd, march 2010, rev 4.2 20 test conditions v in = 3.7, v out = 1.8v, t a = +25oc unless otherwise noted. parameter symbol conditions min typ max units dc-dc3 and dc-dc4 input voltage v in 2.7 3.7 5.5 v output voltage v out 0.85 3.4 v vout accuracy v out v in = 3.7v v out = 0.85v / 1.8v / 3.4v i out = 0.5a active +/- 3.0 % i out = 0.005 a sleep -1.5 +4.5 line regulation v out line v in = 2.7v to 5.5v v out = 1.8v i out = 0.25a active +/- 0.4 % i out = 0.025a (100ma lim) standby +/- 0.18 i out = 0.005a sleep +/- 0.4 +/- 0.5 load regulation v out load i out = 1ma to 500ma active +/- 0.5 % i out = 0a to 0.05a standby +/- 0.2 i out = 0a to 0.010a sleep +/- 0.3 +/- 0.5 quiescent current i q active active ( excluding switching losses) 318 a i q standby standby (excluding switching losses) 120 i q sleep sleep 25 shutdown current i sd 0.01 a p-channel on resistance r dsp v in = 3.7v, i l(n) = 100ma 0.29 ? n-channel on resistance r dsn v in = 3.7v, i l(n) = 100ma 0.2 ? p-channel leakage current i lxp v in = 3.7v, l(n) = gnd 0.02 a n-channel leakage current i lxn v in = 3.7v, l(n) = 3.7v 1.4 a switching frequency f sw 2.0 mhz
production data wm8350 w pd, march 2010, rev 4.2 21 7.4 ldo regulator electrical characteristics test conditions v in = 3.7, v out = 1.8v, t a = +25oc unless otherwise noted. parameter symbol test conditions min typ max unit ldo1 to ldo4 (wm8350 in active state) input voltage vin after start-up 1.6 3.7 5.5 v output voltage vout n 0.9 3.3 v regulation accuracy +/-3.3 % dropout voltage 100ma, v in < 1.8v 200 mv 100ma, v in < 2.7v 700 load current 100 150 ma quiescent current 27 1% of load a leakage current <2.5 a power supply rejection ratio psrr 1khz, v out =1.8v, 25ma load -50 db 100hz on resistance in switch mode r on ldon_swi = 1 2 3.5 ? ldo1 (wm8350 in off state) output voltage vout1 0.95 vout1 in active v
wm8350 production data w pd, march 2010, rev 4.2 22 7.5 battery charger test conditions t a = +25oc unless otherwise noted. parameter symbol test conditions min typ max unit general wall adaptor voltage line when charging from wall adaptor 4.0 5.5 v usb voltage usb when charging from usb power rail 4.0 5.5 v target voltage chg_vsel=00 4.0 4.05 4.1 v chg_vsel=01 4.05 4.1 4.15 chg_vsel=10 4.1 4.15 4.2 chg_vsel=11 4.15 4.2 4.25 defective battery threshold 2.85 v end of charge current eoc programmable in register r168 chg_eoc_sel bits 20 to 90 ma trickle charging trickle charge initiation threshold (wm8350 starts trickle charging when battery is below this threshold) chg_vsel - 100mv v 50ma trickle charge current chg_trickle_sel = 0 (default) 36.6 ma 100ma trickle charge current chg_trickle_sel = 1 79.5 ma fast charging fast charge threshold (wm8350 can only fast-charge if battery is above this threshold) 3.1 v maximum fast-charge current i max 750 ma backup battery (vrtc) backup battery charger output. (note that this backup charger voltage also determines the uvlo threshold.) 2.5 2.7 2.9 v 7.6 current limit switch test conditions t a = +25oc unless otherwise noted. parameter condition min typ max units maximum input voltage 2.7 line v on resistance (at 3.3v) 2.0 ? current limit flag threshold 180 ma current limit 215 ma quiescent current (en but not on) 7 a quiescent current (en and on) a
production data wm8350 w pd, march 2010, rev 4.2 23 7.7 led drivers test conditions t a = +25oc unless otherwise noted. parameter symbol test conditions min typ max unit isinka, isinkb sink current duty cycle = 20% 200 ma continuous 40 isinkc, isinkd, isinke sink current 20 ma output voltage drop 10ma load 0.8 v 7.8 general purpose inputs / outputs (gpio) test conditions t a = +25oc unless otherwise noted. parameter symbol test conditions min typ max unit gpio0 to gpio3 input high level v ih 0.7 vrtc v input low level v il 0.3 vrtc v output high level v oh sinking 2 ma 0.9 vrtc v output low level v ol sourcing 2 ma 0.1 vrtc v sink / source current ma pull-up resistance to vrtc r pu gpn_pu = 1 310 k ? pull-down resistance r pd gpn_pd = 1 225 k ? gpio4 to gpio9 logic levels see section 7.9 sink / source current ma pull-up resistance to dbvdd r pu gpn_pu= 1 220 k ? pull-down resistance r pd gpn_pd = 1 144 k ? gpio10 to gpio12 input high level v ih 2.0 v input low level v il 0.9 v output high level v oh sinking 2 ma 0.9 line v output low level v ol sourcing 2 ma 0.1 gpio_vd d v sink / source current ma pull-up resistance to line r pu gpn_pu = 1 250 k ? pull-down resistance r pd gpn_pd = 1 135 k ?
wm8350 production data w pd, march 2010, rev 4.2 24 7.9 digital interfaces test conditions t a = +25oc unless otherwise noted. parameter symbol test conditions min typ max unit sda, sclk, mclk, bclk, lrclk, adcdata, dacdata, gpio4 to gpio9 input high level v ih 0.7 dbvdd v input low level v il 0.3 dbvdd v output high level v oh sinking 1ma 0.9 dbvdd v output low level v ol sourcing 1ma 0.1xdbvdd v 7.10 auxiliary adc test conditions t a = +25oc unless otherwise noted. parameter conditions symbol min typ max units input resistance (aux1,2,3,4, usb, line, batt and chiptemp) auxadc_scalen [1:0] = 00 ? auxadc_scalen [1:0] = 01 2.2 k ? auxadc_scalen [1:0]= 10 330 660 k ? auxadc_scalen [1:0] = 11 330 440 k ? input voltage range. aux1,2,3,4,usb,line,batt and chiptemp (v rtc = 2.7v & v line (max)= 5.5v, v bg =1.25v) auxadc_scalen [1:0] = 01 auxadc_ref = 0 v bg v auxadc_scalen [1:0] = 01 auxadc_ref = 1 v rtc v auxadc_scalen [1:0] = 10 auxadc_ref = 0 2 x v bg v auxadc_scalen [1:0] = 10 auxadc_ref = 1 2 x v rtc v auxadc_scalen [1:0] = 11 auxadc_ref = 0 v line v auxadc_scalen [1:0] = 11 auxadc_ref = 1 4 x v bg v input capacitance (aux1,2,3,4, usb, line, batt and chiptemp) input is selected (input_select) and auxadc_scalen [1:0] not = 00 2.08 pf vrtc quiescent current aux_rbmode = 0, auxadc_ena = 1 140 a vrtc quiescent current aux_rbmode = 1 auxadc_ena = 1 151 a line_int quiescent current <<1 ma adcclk frequency f auxclk 400 470/512 800 khz adc resolution 12 bits adc conversion time 13 clk periods aux adc accuracy non-calibrated (calibration possible using the vbg input on aux3). 1% of this variation due to bg variation over temperature. 2.2 %
production data wm8350 w pd, march 2010, rev 4.2 25 8 typical power consumption adc master mode 48khz 2.5 2.5 1.71 1.71 3.6 0.000014 0.55 2.3 13.87 3.3 3.3 3.3 1.8 4.46 0.00003 1.085 2.4 22.62 3.6 3.6 3.6 3.6 4.79 0.000028 1.18 5.67 41.90 power consumption (mw) iavdd (ma) ihpvdd (ma) idb (ma) idc (ma) avdd (v) dbvdd (v) dcvdd (v) hpvdd (v) adc master mode 1khz tone 100mvpk-pk 2.5 2.5 1.71 1.71 3.6 0.00009 0.5 2.14 13.51 3.3 3.3 3.3 1.8 4.4 0.00016 1.02 2.3 22.03 3.6 5.5 3.6 3.6 4.8 0.00008 1.12 5.3 40.39 hpvdd (v) iavdd (ma) ihpvdd (ma) idb (ma) idc (ma) power consumption (mw) avdd (v) dbvdd (v) dcvdd (v) adc master mode pink noise 2.5 2.5 1.71 1.71 3.58 0.000004 0.51 2.1 13.41 3.3 3.3 3.3 1.8 4.43 0.00026 1 2.2 21.88 3.6 5.5 3.6 3.6 4.8 0.000085 1.1 5.2 39.96 power consumption (mw) iavdd (ma) ihpvdd (ma) idb (ma) idc (ma) avdd (v) hpvdd (v) dbvdd (v) dcvdd (v) adc slave mode 44.1khz 2.5 2.5 1.71 1.71 3.4 0.00002 0.02 2.2 12.30 3.3 3.3 3.3 1.8 4.2 0.00041 0.05 2.3 18.17 3.6 3.6 3.6 3.6 4.4 0.0004 0.05 5.33 35.21 iavdd (ma) ihpvdd (ma) idb (ma) idc (ma) power consumption (mw) avdd (v) hpvdd (v) dbvdd (v) dcvdd (v) dac out1 master mode 44.1khz, 10k ? load 2.5 2.5 1.71 1.71 2.97 0.299 0.193 1.69 11.39 3.3 3.3 3.3 1.8 4.14 0.432 0.39 1.78 19.58 3.6 3.6 3.6 3.6 4.54 0.486 0.461 4.28 35.16 power consumption (mw) iavdd (ma) ihpvdd (ma) idb (ma) idc (ma) avdd (v) dbvdd (v) dcvdd (v) hpvdd (v) 48khz,10k ? load 2.5 2.5 1.71 1.71 2.82 0.3 0.2 2 11.56 3.3 3.3 3.3 1.8 3.94 0.45 0.42 2.12 19.69 3.6 3.6 3.6 3.6 4.33 0.51 0.46 4.9 36.72 hpvdd (v) iavdd (ma) ihpvdd (ma) idb (ma) idc (ma) power consumption (mw) avdd (v) dbvdd (v) dcvdd (v)
wm8350 production data w pd, march 2010, rev 4.2 26 dac out1 master mode pink noise 2.5 2.5 1.71 1.71 2.97 2 0.192 2.2 16.52 3.3 3.3 3.3 1.8 4.13 2.6 0.39 2.3 27.64 3.6 5.5 3.6 3.6 4.5 2.9 0.45 5.5 53.57 idc (ma) power consumption (mw) hpvdd (v) iavdd (ma) ihpvdd (ma) idb (ma) avdd (v) dbvdd (v) dcvdd (v) dac out1 master mode 1khz tone, 16 ? load 2.5 2.5 1.71 1.71 2.9 2.97 0.19 2.2 18.76 3.3 3.3 3.3 1.8 4.1 3.8 0.4 2.3 31.53 3.6 5.5 3.6 3.6 4.5 4.1 0.44 5.4 59.77 avdd (v) dbvdd (v) dcvdd (v) hpvdd (v) iavdd (ma) ihpvdd (ma) idb (ma) idc (ma) power consumption (mw) 1khz tone, 10k ? load 2.5 2.5 1.71 1.71 2.97 0.3 0.2 2.17 12.23 3.3 3.3 3.3 1.8 4.14 0.43 0.4 2.3 20.54 3.6 3.6 3.6 3.6 4.5 0.5 0.46 5.4 39.10 hpvdd (v) avdd (v) dbvdd (v) dcvdd (v) idb (ma) idc (ma) power consumption (mw) iavdd (ma) ihpvdd (ma) dac out1 slave mode 44.1 khz, 10k ? load 2.5 2.5 1.71 1.71 2.8 0.27 0.009 2.1 11.28 3.3 3.3 3.3 1.8 3.6 0.38 0.02 2.3 17.34 3.6 3.6 3.6 3.6 4.1 0.43 0.02 5.2 35.10 avdd (v) dbvdd (v) dcvdd (v) hpvdd (v) iavdd (ma) ihpvdd (ma) idb (ma) idc (ma) power consumption (mw)
production data wm8350 w pd, march 2010, rev 4.2 27 9 typical performance data 9.1 audio codec typical thd+n performance of the headphone drivers is shown below for 16 and 32 headphone loads. these graphs are derived whilst using the wm8350 power management to generate the power supply rails for the audio codec. the supply conditions are as follows: ? avdd = hpvdd = 3.0v, generated by wm8350 ldo1 ? dcvdd = dbvdd = 1.8v, generated by wm8350 dc-dc6 a c coupled headphone (16 ohm load) a vdd=hpvdd=3.0v (wm8350 - ldo1) dcvdd=dbvdd=1.8v ( wm8350 - dcdc6 ) -100 -90 -80 -70 -60 -50 -40 -30 -20 -10 0 0 5 10 15 20 25 30 35 output power (mw) thd+n amplitude (dbv) a c coupled headphone (32 ohm load) avdd=hpvdd=3.0v (wm8350 - ldo1) dcvdd=dbvdd=1.8v (wm8350 - dcdc6) -100 -90 -80 -70 -60 -50 -40 -30 -20 -10 0 0 5 10 15 20 25 30 output power (mw) thd+n amplitude (dbv)
wm8350 production data w pd, march 2010, rev 4.2 28 9.2 dc-dc converters 9.2.1 power efficiency efficiency vs load dcdc1 0 10 20 30 40 50 60 70 80 90 100 0.001 0.01 0.1 1 load (a) efficiency (%) v out = 1.8v v in = 3.0v v in = 3.7v v in = 4.2v standby active v in = 3.0v v in = 3.7v v in = 4.2v efficiency vs load dcdc1 0 10 20 30 40 50 60 70 80 90 100 0.001 0.01 0.1 1 load (a) efficiency (%) v out = 1.2v v in = 3.0v v in = 3.7v v in = 4.2v standby ac tive v in = 3.0v v in = 3.7v v in = 4.2v figure 1 dc-dc1 efficiency vs load current vo=1.8v figure 2 dc-dc1 efficiency vs load current vo=1.2v efficiency vs load dcdc3 0 10 20 30 40 50 60 70 80 90 100 0.001 0.01 0.1 1 load (a) efficiency (%) v out = 1.8v v in = 3.0v v in = 3.7v v in = 4.2v standby active v in = 3.0v v in = 3.7v v in = 4.2v efficiency vs load dcdc2 0 10 20 30 40 50 60 70 80 90 100 0.001 0.01 0.1 load (a) efficiency (%) v out = 20.0v v in = 3.1v v in = 3.7v v in = 4.2v figure 3 dc-dc3 efficiency vs load current vo=1.8v figure 4 dc-dc2 efficiency vs load current vo=20v
production data wm8350 w pd, march 2010, rev 4.2 29 efficiency vs load dcdc2 40 50 60 70 80 90 100 0.001 0.01 0.1 1 load (a) efficiency (%) v out = 5.0v v in = 3.1v v in = 3.7v v in = 4.2v active figure 5 dc-dc2 efficiency vs load current vo=5v 9.2.2 output voltage regulation figure 6 dc-dc1 output voltage vs output current figure 7 dc-dc1 output voltage vs input voltage output voltage vs input voltage 1.810 1.815 1.820 1.825 1.830 1.835 2.7 3.2 3.7 4.2 4.7 5.2 v i (v) v o (v) v o= 1.8 v io = 0.5a output voltage vs load current 1.780 1.785 1.790 1.795 1.800 0.0 0.1 0.2 0.3 0.4 0.5 i o (a) v o (v) v o= 1.8v vi = 3.7v
wm8350 production data w pd, march 2010, rev 4.2 30 9.2.3 dynamic output voltage figure 8 dc-dc1 standby to active handover at maximum standby current figure 9 dc-dc1 transient load v out v in = 5.0v, v out = 1.2v, load = 0.05a (standby max) lx i out v in = 5.0v, v out = 1.2v, load = 0 to 0.4a v out i out
production data wm8350 w pd, march 2010, rev 4.2 31 9.3 ldo regulators ldo1 load regulation 3 3.01 3.02 3.03 3.04 3.05 3.06 3.07 3.08 3.09 0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.1 0.11 0.12 0.13 0.14 0.15 iout (a) vout (v) v in = 3.7v figure 10 ldo1 output voltage versus output current figure 11 ldo1 load transient response 0.0 20.0 40.0 60.0 80.0 100.0 120.0 140.0 0 10 20 30 40 50 60 70 80 90 100 110 120 130 140 150 load current (ma) noise (uvrms) 0 10 20 30 40 50 60 70 80 100 1000 10000 100000 fr e que ncy (hz) psrr (db ) i out = 0.005a i out = 0.1a i out = 0.025a v in - v out = 1v figure 12 ldo1 output noise versus output current figure 13 power supply ripple rejection versus frequency 217hz gsm to 100khz v out i out ldo1 v in = 3 .7v, v out = 2.5v load step 0a to 0.05a
wm8350 production data w pd, march 2010, rev 4.2 32 10 signal timing requirements 10.1 system clock timing mclk t mclkl t mclkh t mclky figure 14 master clock timing master clock timing parameter symbol test conditions min typ max unit mclk cycle time t mclky 40 ns mclk duty cycle = high time / low time 60:40 40:60 10.2 audio interface timing - master mode figure 15 digital audio data timing ? master mode test conditions dcvdd = 1.8v, dbvdd = 3.3v, dgnd = 0v, t a = +25 o c, master mode, fs = 48khz, 24-bit data, unless otherwise stated. parameter symbol min typ max unit bclk rise time (10pf load) t bclkr 3 ns bclk fall time (10pf load) t bclkf 3 ns bclk duty cycle t bclkds 60:40 40:60 lrc propagation delay from bclk falling edge t dl 10 ns adcdat propagation delay from bclk falling edge t dda 10 ns dacdat setup time to bclk rising edge t dst 10 ns dacdat hold time from bclk rising edge t dht 10 ns
production data wm8350 w pd, march 2010, rev 4.2 33 10.3 audio interface timing - slave mode figure 16 digital audio data timing ? slave mode test conditions dcvdd = 1.8v, dbvdd = 3.3v, dgnd = 0v, t a = +25 o c, slave mode, fs = 48khz, 24-bit data, unless otherwise stated. parameter symbol min typ max unit bclk cycle time t bcy 50 ns bclk pulse width high t bch 20 ns bclk pulse width low t bcl 20 ns lrclk set-up time to bclk rising edge t lrsu 10 ns lrclk hold time from bclk rising edge t lrh 10 ns dacdat hold time from bclk rising edge t dh 10 ns dacdat set-up time to bclk rising edge t ds 10 ns adcdat propagation delay from bclk falling edge t dd 10 ns
wm8350 production data w pd, march 2010, rev 4.2 34 10.4 audio interface timing - tdm mode in tdm mode, it is important that two adc devices to not attempt to drive the adcdat pin simultaneously. the timing of the wm8350 adcdat tri-stating at the start and end of the data transmission is described in figure 17 and the table below. figure 17 digital audio data timing - tdm mode test conditions dbvdd = 3.3v, dgnd = 0v, t a =+25 o c, master mode, fs=48khz, 24-bit data, unless otherwise stated. parameter conditions min typ max unit audio data timing information adcdat setup time from bclk falling edge dcvdd = 3.6v 5 ns dcvdd = 1.8v 15 ns adcdat release time from bclk falling edge dcvdd = 3.6v 5 ns dcvdd = 1.8v 15 ns
production data wm8350 w pd, march 2010, rev 4.2 35 10.5 control interface timing figure 18 control interface timing - 2-wire control mode test conditions dcvdd = 1.8v, dbvdd = 3.3v, dgnd = 0v, t a = +25 o c, unless otherwise stated. parameter symbol min typ max unit sclk frequency 0 526 khz sclk low pulse-width t 1 1.3 us sclk high pulse-width t 2 600 ns hold time (start condition) t 3 600 ns setup time (start condition) t 4 600 ns data setup time t 5 100 ns sdata, sclk rise time t 6 300 ns sdata, sclk fall time t 7 300 ns setup time (stop condition) t 8 600 ns data hold time t 9 900 ns pulse width of spikes that will be suppressed t ps 0 5 ns
wm8350 production data w pd, march 2010, rev 4.2 36 figure 19 control interface timing - 3-wire control mode (write cycle) figure 20 control interface timing - 3-wire control mode (read cycle) test conditions dbvdd = 3.3v, dgnd = 0v, t a = +25 o c, unless otherwise stated. parameter symbol min typ max unit csb falling edge to sclk rising edge t csu 40 ns sclk rising edge to csb rising edge t cho 10 ns sclk pulse cycle time t scy 200 ns sclk pulse width low t scl 80 ns sclk pulse width high t sch 80 ns sdata to sclk set-up time t dsu 40 ns sdata to sclk hold time t dho 10 ns pulse width of spikes that will be suppressed t ps 0 5 ns sclk falling edge to sdata output transition t dl 40 ns
production data wm8350 w pd, march 2010, rev 4.2 37 csb input (gpio7) sclk (input) sdata (input) t csu t cho t sch t scl t scy t dho t dsu figure 21 control interface timing - 4-wire control mode (write cycle) csb input (gpio7) sclk (input) sdout output (gpio6) t dl figure 22 control interface timing - 4-wire control mode (read cycle) test conditions dbvdd = 3.3v, dgnd = 0v, t a = +25 o c, unless otherwise stated. parameter symbol min typ max unit csb falling edge to sclk rising edge t csu 40 ns sclk rising edge to csb rising edge t cho 10 ns sclk pulse cycle time t scy 200 ns sclk pulse width low t scl 80 ns sclk pulse width high t sch 80 ns sdata to sclk set-up time t dsu 40 ns sdata to sclk hold time t dho 10 ns pulse width of spikes that will be suppressed t ps 0 5 ns sclk falling edge to sdout transition t dl 40 ns
wm8350 production data w pd, march 2010, rev 4.2 38 11 control interface 11.1 general description the wm8350 is controlled by writing to its control registers. readback is available for most registers. most aspects of the wm8350 operation can be controlled via this interface. the control interface can operate as either a 2-, 3- or 4-wire control interface: ? 2-wire mode uses pins sclk and sdata. ? 3-wire mode uses pins csb, sclk and sdata. ? 4-wire mode uses pins csb, sclk, sdata and sdout. gpio7 is automatically enabled as csb in 3-wire and 4-wire control modes. gpio6 is automatically enabled as sdout in 4-wire control mode. register readback is provided on the bi-directional pin sdata in 2-/3-wire modes and on sdout (gpio6) in 4-wire mode. in 2-wire mode, the control interface supports single register access as well as multiple access with or without address auto-increment. in development mode (see section 14.4), the wm8350 initially selects the secondary 2-wire control interface, using pins gpio10 and gpio11. this enables configuration of the wm8350 via a separate interface prior to selecting the normal system operation. note that, in custom modes, the secondary interface is not supported. 11.2 control interface modes the wm8350 control interface can be configured for 2-, 3- or 4-wire operation using the following register bits: address bit label default description r6 (06h) interface control 3 spi_cfg 0 controls the sdout (gpio6) pin operation in 4 wire mode 0 = sdout output is cmos 1 = sdout output is open drain note: spi_4wire must be set for this to take effect. 2 spi_4wire 0 selects 3-wire or 4-wire spi mode 0 = 3 wire mode using bi-directional sdata pin 1 = 4 wire mode using sdout (gpio6) note: spi_3wire must be set for this to take effect. 1 spi_3wire 0 selects 2- or 3-/4-wire mode. 0 = 2-wire mode 1 = 3-/4-wire mode table 1 control interface modes
production data wm8350 w pd, march 2010, rev 4.2 39 11.3 2-wire serial control mode the 2-wire control interface normally uses the sclk and sdata pins, which are referenced to the digital buffer supply, dbvdd. (in development mode, the interface is initially redirected, with gpio10 and gpio11 effectively replacing sclk and sdata - see section 14.4.1). 2-wire control mode is selected by setting spi_3wire = 0. this is the default setting for this field. in 2-wire mode, the wm8350 is a slave device on the control interface; sclk (or gpio10) is a clock input, while sdata (or gpio11) is a bi-directional data pin. to allow arbitration of multiple slaves (and/or multiple masters) on the same interface, the wm8350 transmits logic 1 by tri-stating the sdata pin, rather than pulling it high. an external pull-up resistor is required to pull the sdata line high so that the logic 1 can be recognised by the master. many devices can be controlled by the same bus, and each device has a unique 7-bit device id (this is not the same as the 8-bit address of each register in the wm8350). the default device id is 0011 0100 (0x34h). the lsb of the device id is the read/write bit; this bit is set to logic 1 for ?read? and logic 0 for ?write?. in development mode, the device id may be changed to other values. the controller indicates the start of data transfer with a high to low transition on sdata while sclk remains high. this indicates that a device id, register address and data will follow. all devices on the 2-wire bus respond to the start condition and shift in the next eight bits on sdata (7-bit device id + read/write bit, msb first). if the device id received matches the device id of the wm8350, then the wm8350 responds by pulling sdata low on the next clock pulse (ack). if the device id is not recognised or the r/w bit is ?1? when operating in write only mode, the wm8350 returns to the idle condition and waits for a new start condition and valid address. if the device id matches the device id of the wm8350, the data transfer continues as described below. the controller indicates the end of data transfer with a low to high transition on sdata while sckl remains high. after receiving a complete address and data sequence the wm8350 returns to the idle state and waits for another start condition. if a start or stop condition is detected out of sequence at any point during data transfer (i.e. sdata changes while sclk is high), the device returns to the idle condition. the wm8350 supports the following read and write operations: ? single write ? single read ? multiple write using auto-increment ? multiple read using auto-increment
wm8350 production data w pd, march 2010, rev 4.2 40 the sequence of signals associated with a single register write operation is illustrated in figure 23. figure 23 control interface 2-wire register write the sequence of signals associated with a single register read operation is illustrated in figure 24. figure 24 control interface 2-wire register read the control interface also supports other register operations, as listed above. the interface protocol for these operations is summarised below. the terminology used in the following figures is detailed in table 2. terminology description s start condition sr repeated start a acknowledge p stop condition r/w readnotwrite 0 = write 1 = read [white field] data flow from bus master to wm8350 [grey field] data flow from wm8350 to bus master table 2 control interface terminology figure 25 single register write to specified address figure 26 single register read from specified address
production data wm8350 w pd, march 2010, rev 4.2 41 figure 27 multiple register write to specified address using auto-increment figure 28 multiple register read from specified address using auto-increment figure 29 multiple register read from last address using auto-increment multiple write and multiple read operations enable the host processor to access sequential blo cks of the data in the wm8350 register map faster than is possible with single register operations. the auto-increment function is enabled by default; this is controlled by the autoinc register bit as described in table 3. address bit label default description r6 (06h) interface control 9 autoinc 1 enables address auto-increment 0 = disabled 1 = enabled table 3 enabling address auto-increment
wm8350 production data w pd, march 2010, rev 4.2 42 11.4 3-wire serial control mode the 3-wire control interface uses the csb, sclk and sdata pins, which are referenced to the digital buffer supply, dbvdd. (in 3-wire mode, csb is provided on gpio7.) 3-wire control mode is selected by setting spi_3wire = 1 and spi_4wire = 0. in 3-wire control mode, a control word consists of 24 bits. the first bit is the read/write bit (r/w), which is followed by 7 address bits (a6 to a0) that determine which control register is accessed. the remaining 16 bits (b15 to b0) are data bits, corresponding to the 16 bits in each control register. in 3-wire mode, every rising edge of sclk clocks in one data bit from the sdata pin. a rising edge on csb latches in a complete control word consisting of the last 24 bits. in write operations (r/w=0), all sdata bits are driven by the controlling device. in read operations (r/w=1), the sdata pin is driven by the controlling device to clock in the register address, after which the wm8350 drives the sdata pin to output the applicable data bits. similarly to 2-wire control mode, the wm8350 transmits logic 1 by tri-stating the sdata pin, rather than pulling it high. an external pull-up resistor is required to pull the sdata line high so that the logic 1 can be recognised by the master. the 3-wire control mode timing is illustrated in figure 30. figure 30 3-wire serial control interface
production data wm8350 w pd, march 2010, rev 4.2 43 11.5 4-wire serial control mode the 4-wire control interface uses the csb, sclk, sdata and sdout pins, which are referenced to the digital buffer supply, dbvdd. (in 4-wire mode, sdout is provided on gpio6; csb is provided on gpio7.) 4-wire control mode is selected by setting spi_3wire = 1 and spi_4wire = 1. the data output pin, sdout, can be configured as cmos or open drain, as described in table 1. in cmos mode, sdout is driven low when not outputting register data bits. in open drain mode, sdout is undriven when not outputting register data bits. in write operations (r/w=0), this mode is the same as 3-wire mode described above. in read operations (r/w=1), the sdata pin is ignored following receipt of the valid register address. sdout is driven by the wm8350. the 4-wire control mode timing is illustrated in figure 31 and figure 32. r/w a6 a5 a4 a3 a2 a1 a0 sdata sclk csb control register address control register data bits ( read / write ) sdout b15 b14 b13 b12 b11 b10 b9 b8 b0 b7 b6 b5 b4 b3 b2 b1 b15 b14 b13 b12 b11 b10 b9 b8 b0 b7 b6 b5 b4 b3 b2 b1 figure 31 4-wire readback (cmos) a6 a5 a4 a3 a2 a1 a0 sdata sclk csb control register address control register data bits ( read / write ) sdout undriven b15 b14 b13 b12 b11 b10 b9 b8 b0 b7 b6 b5 b4 b3 b2 b1 b15 b14 b13 b12 b11 b10 b9 b8 b0 b7 b6 b5 b4 b3 b2 b1 ud r/w figure 32 4-wire readback (open drain)
wm8350 production data w pd, march 2010, rev 4.2 44 11.6 register locking certain control fields are protected against accidental overwriting. this includes: ? watchdog timer and system control settings in registers r3, r4, r6 and r12 (03h, 04h, 06h and 0ch). ? battery charger control fields in registers r168, r169 and r170 (a8h, a9h and aah). by default, these registers are locked, i.e. writing to them has no effect. however, they can be unlocked by writing a value of 0013h to register r219. address bit label default description r219 (dbh) security 15: 0 security [15:0] 0000h the value 0013h needs to be set in this register to allow write access to the security locked registers. table 4 locking and unlocking protected registers it is recommended to re-lock the protected registers immediately after writing to them. this helps protect the system against accidental overwriting of register values. it is recommended to contact wolfson applications support for guidance on features that are affected by register locking. 11.7 special registers 11.7.1 chip id a read instruction from register r0 can be used to confirm that the chip is a wm8350. address bit label default description r0 (00h) reset/id 15:0 sw_reset/c hip_id [15:0] 6143h reading this register returns 6143h. table 5 chip id 11.7.2 device information the read-only register r1 provides additional information about the wm8350 device. address bit label default description r1 (01h) id 15:1 2 chip_rev [3:0] the functional silicon revision - this tracks changes in functionality which are separate from rom mask settings 11:1 0 conf_sts [1:0] the state of the configuration pins. this selects what register defaults should be. 7:0 cust_id [7:0] the chip revision number r2 (02h) revision 7:0 mask_rev [7:0] the rom mask id table 6 reading device information
production data wm8350 w pd, march 2010, rev 4.2 45 12 clocking, timing and sample rates 12.1 general description the wm8350 includes clocking circuitry for the on-chip audio codec, the dc-dc converters and the auxiliary adc. it provides the following capabilities: the wm8350 has two internal clock generators: a 2mhz rc oscillator and a 32khz crystal oscillator. clocks are required for system start-up and also for the dc-dc converter clocks; these are derived from the internal 2mhz rc oscillator. the 32khz crystal oscillator (or external 32khz source) is used to drive the internal real time clock (rtc), and may also be used as a reference source for the codec clock generators. the codec clocks may be derived either directly from mclk, or else via an on-chip frequency locked loop (fll) to generate the required clocking from a wide range of reference inputs. the fll can take as input the external mclk, or adclrclk / daclrclk (in slave modes), or the 32khz crystal oscillator (or external 32khz source), and generates (typically) a 12.288mhz clock for the codec. the flexible clocking arrangements are illustrated in figure 33. figure 33 clock generation and distribution scheme
wm8350 production data w pd, march 2010, rev 4.2 46 12.1.1 clocking the audio codec the wm8350 audio codec core requires an accurate, low-jitter clock. clocks for the adcs, dacs, dsp core functions, and the digital audio interface are all derived from a common internal clock source, sysclk. this clock may be derived directly from mclk, or may be generated from an fll using mclk or alternate sources as an external reference. the sysclk source is selected by mclk_sel. many commonly-used audio sample rates can be derived directly from typical mclk frequencies. the adc and dac sample rates are independently selectable, relative to sysclk, using adc_clkdiv and dac_clkdiv. refer to section 12.3 for more details 12.1.2 clocking the dc-dc converters during a system start-up, no external clock signals are available. the wm8350 therefore generates all internal clocks required for the dc-dc converters, system control and housekeeping functions. these clocks are derived from the on-chip rc oscillator. the dc-dc converters? nominal switching rate is 2.0mhz and 1.0mhz. 12.1.3 internal rc oscillator the internal rc oscillator generates the system clock 2.0mhz as well as the clock for the dcdc converters. the period of the generated clock is defined by the time needed for a fixed value capacitor to be charged up to the reference voltage by a constant current source. 12.2 crystal oscillator the on-chip crystal oscillator generates a 32.768khz reference clock, which can be used to provide reference clock for the real time clock (rtc) in the wm8350. it may also be used as a reference input to the fll, for the purpose of generating the codec clocks. the oscillator is powered from vrtc, so that it can keep running when no other power source is available. it requires an external crystal on the x1 and x2 pins, as well as two capacitors and a resistor, connected as shown in figure 34. figure 34 wm8350 crystal oscillator
production data wm8350 w pd, march 2010, rev 4.2 47 the oscillator is enabled by the osc32k_ena field, as described in table 7. it is enabled by default and remains enabled when the wm8350 is in the off or backup state. address bit label default description r12 (0ch) power mgmt (5) 10 osc32k_ena 1 32khz crystal oscillator control 0 = 32khz osc is disabled 1 = 32khz osc is enabled r218 (dah) rtc tick control 12 note: osc32k_ena can be accessed through r12 or through r218. reading from or writing to either register location has the same effect. table 7 enabling the 32khz oscillator if a suitable 32.768khz clock is already present elsewhere in the system, then it is possible for the wm8350 to use this clock instead. an external clock can be provided to the wm8350 on pin x1 (with pin x2 left floating) or else on a gpio pin configured as a 32khz input (see section 20). in addition to driving the rtc, the 32khz oscillator signal can be output to a gpio pin configured as a 32khz output; this is possible on gpio pins 2, 3, 5 and 12 (see section 20.2). 12.3 clocking and sample rates clocks for the adcs, dacs, dsp core functions, and the digital audio interface are all derived from a common internal clock source, sysclk. sysclk can either be derived directly from mclk (with a selectable divide by two option, controlled by mclk_div), or may be generated by the fll using mclk or alternate sources as an external reference. the sysclk source is selected by mclk_sel. many commonly-used audio sample rates can be derived directly from typical mclk frequencies. the adc and dac sample rates are independently selectable, relative to sysclk, using adc_clkdiv and dac_clkdiv. these fields must be set according to the required sampling frequency and depending upon the selected clocking mode. two clocking modes are provided as follows. normal mode allows selection of the commonly used sample rates from typical audio system clocking frequencies (eg. 12.288mhz); usb mode allows many of these sample rates to be generated from a 12mhz usb clock. depending on the available clock sources, usb mode may be used to save power by supporting 44.1khz operation. in normal mode, ? adc_sysclk = 256 x adc sampling frequency ? dac_sysclk = 256 x dac sampling frequency in usb mode, ? adc_sysclk = 272 x adc sampling frequency ? dac_sysclk = 272 x dac sampling frequency the above equations determine the required values for adc_clkdiv and dac_clkdiv. the clocking mode is selected via the aif_lrclkrate field. in master mode, bclk is also derived from sysclk via a programmable division set by bclk_div. in the case where the adcs and dacs are operating at different sample rates, bclk must be set according to whichever is the faster rate. in master mode, internal clock divide and phase control mechanisms ensure that the bclk, adclrclk and daclrclk edges will occur in a predictable and repeatable position relative to each other and to the data for a given combination of adc/dac sample rates and bclk settings. in slave mode, the host processor must ensure that bclk, adclrclk and daclrclk are fully synchronised; if these inputs are not synchronised, unpredictable pops and noise may result.
wm8350 production data w pd, march 2010, rev 4.2 48 when the gpio5 pin is configured as codec_opclk, a clock derived from sysclk may be output on this pin to provide clocking for other parts of the system. the frequency of this signal is set by opclk_div. alternate gpio pins can be used to provide adclrclk and adcbclk as described in section 20. an inverted l/r clock signal adclrclkb can also be generated. when this feature is used, the lrclk and bclk pins support the dac only, and the alternate gpio pins support the adc only. limited capability can be provided to support mixed sample rates by this method. (the selection of usb mode and the supported values of the various sysclk dividers impose restrictions on what combinations of clocking and sample rates may be configured.) a slow clock derived from sysclk may be used to provide de- bouncing of the headphone detect function, and to set the timeout period for volume updates when zero-cross functions are used. this clock is enabled by toclk_ena and its frequency is set by toclk_rate. the overall codec clocking scheme is illustrated in figure 35. mclk sysclk adc_clkdiv[2:0] r68[2:0] 1, 1.5, 2, 3, 4, 5.5, 6 dac lrclk (master mode output) bclk (master mode output) bclkdiv[3:0] r40[7:4] 1, 1.5, 2, 3, 4, 5.5, 6, 8, 11, 12, 16, 22, 24, 32 aif_tri r112[13] dac_clkdiv[2:0] r54[2:0] 1, 1.5, 2, 3, 4, 5.5, 6 adclrclk / codec_opclk (gpio5) f/n f/4 64fs 64fs adc f/n f/n f/n gp5_fn[3:0] r141[7:4] mclk_div r40[8] 1, 2 opclk_div[2:0] r40[2:0] 1, 2, 3, 4, 5.5, 6 slowclk jack detect debounce, volume update timeout toclk_ena r40[15] f/2 21 f/2 19 toclk_rate r40[14] sysclk all internal clocks are derived from sysclk, either directly from mclk or via the frequency locked loop (fll). the fll takes mclk, adclrclk, daclrclk or 32khz input as its reference. adc_clkdiv adc sample rate is set by adc_clkdiv (master or slave mode). dac_clkdiv dac sample rate is set by dac_clkdiv (master or slave mode). bclkdiv bclk rate is set by bclkdiv in master mode. when adc and dac operate at different sample rates (in master or slave mode), bclk rate should be high enough to support the higher of the adc/dac sample rates. adclrclk, adcbclk these signals can be provided for the adc via gpio pins. when these are used, the lrclk and bclk pins are used by the dac only. opclk_div gpio clock output frequency is set by opclk_div. toclksel a slow clock is used for jack detect debounce and for volume update timeouts (when zero-crossing is enabled). the frequency of this slow clock is set by toclk_rate. other sample rate controls deemp configures the de-emphasis filter for the chosen sample rate. f/4 daclrc_rate[10:0] r53[10:0] 1 .. 2047 adclrc_rate[10:0] r70[10:0] 1 .. 2047 adclrc_ena r70[11] bclk_mstr r115[14] daclrc_ena r53[11] f/n adc_sysclk dac_sysclk adcbclk (gpio8) gp8_fn[3:0] r142[3:0] lrc_adc_sel r41[15] gp6_fn[3:0] r141[11:8] adclrclkb (gpio6) f/n fll f ref f out daclrclk adclrclk crystal oscillator / gpio 32khz input f/n mclk_sel r40[11] fll_clk_src r45[1:0] figure 35 audio codec clocking
production data wm8350 w pd, march 2010, rev 4.2 49 12.3.1 sysclk control the mclk_sel bit is used to select the source for sysclk. the source may be either directly from the mclk input or may be from the output of the fll. if required, the selected source may be divided by two, as determined by mclk_div, as described in table 8. for further details of the fll, see section 12.4. when the internal clock source is switched from one value to another using mclk_sel, the change of source will only occur following a falling edge of the source signal that was originally selected. in the case where the clock source is switched from fll to mclk, a suitable falling edge can be ensured by disabling the fll after selection of mclk as the source. the recommended sequence of actions to switch from fll to mclk source is as follows: ? select mclk as source (mclk_sel = 0) ? disable fll (fll_ena = 0) ? disable fll oscillator (fll_osc_ena = 0) note that, as an alternative to the above sequence, a software reset may be used to re-select mclk as the default sysclk source. the recommended sequence of actions to switch from mclk to fll source is as follows: ? enable fll oscillator (fll_osc_ena = 1) ? enable fll (fll_ena = 1) ? select fll as source (mclk_sel = 1) register address bit label default description r40 (28h) clock control 1 11 mclk_sel 0 selects source for sysclk to codec 0 = mclk pin 1 = fll 8 mclk_div 0 selects mclk division in slave (mclk input) mode: 0 = divide mclk by 1 1 = divide mclk by 2 table 8 sysclk control
wm8350 production data w pd, march 2010, rev 4.2 50 12.3.2 adc / dac sample rates the adc and dac sample rates are independently selectable, relative to sysclk, by setting the register fields adc_clkdiv and dac_clkdiv. these fields must be set according to the sysclk frequency, and according to the selected mode of operation (normal or usb). the applicable fields are described in table 9. selection of usb mode enables a 12mhz usb clock to be used to generate the required internal clock signals. table 10 describes the available sample rates using four different common mclk frequencies. the aif_lrclkrate field must be set as described in table 9. in normal mode, the programmable division set by adc_clkdiv must ensure that adc_sysclk is 256 * adc sampling frequency. dac_clkdiv must ensure that dac_sysclk is 256 * dac sampling frequency. in usb mode, adc_clkdiv must ensure that adc_sysclk is 272 * adc sampling frequency. dac_clkdiv must ensure that dac_sysclk is 272 * dac sampling frequency. register address bit label default description r48 (30h) dac control 12 aif_lrclkrate 0 mode select 1 = usb mode (272 * fs) 0 = normal mode (256 * fs) r68 (44h) adc clock control 2:0 adc_clkdiv [2:0] 000 adc sample rate divider 000 = sysclk / 1.0 001 = sysclk / 1.5 010 = sysclk / 2 011 = sysclk / 3 100 = sysclk / 4 101 = sysclk / 5.5 110 = sysclk / 6 111 = reserved r54 (36h) dac clock control 2:0 dac_clkdiv [2:0] 000 dac sample rate divider 000 = sysclk / 1.0 001 = sysclk / 1.5 010 = sysclk / 2 011 = sysclk / 3 100 = sysclk / 4 101 = sysclk / 5.5 110 = sysclk / 6 111 = reserved table 9 adc / dac sample rate control
production data wm8350 w pd, march 2010, rev 4.2 51 sysclk adc / dac sample rate divider clocking mode adc / dac sample rate 12.2880 mhz 000 = sysclk / 1 normal (256 * fs) 48 khz 001 = sysclk / 1.5 32 khz 010 = sysclk / 2 24 khz 011 = sysclk / 3 16 khz 100 = sysclk / 4 12 khz 101 = sysclk / 5.5 not used 110 = sysclk / 6 8 khz 111 = reserved reserved 11.2896 mhz 000 = sysclk / 1 normal (256 * fs) 44.1 khz 001 = sysclk / 1.5 not used 010 = sysclk / 2 22.05 khz 011 = sysclk / 3 not used 100 = sysclk / 4 11. 025 khz 101 = sysclk / 5.5 8. 018 khz 110 = sysclk / 6 not used 111 = reserved reserved 12.0000 mhz 000 = sysclk / 1 usb (272 * fs) 44.118 khz 001 = sysclk / 1.5 not used 010 = sysclk / 2 22. 059 khz 011 = sysclk / 3 not used 100 = sysclk / 4 11. 029 khz 101 = sysclk / 5.5 8. 021 khz 110 = sysclk / 6 not used 111 = reserved reserved 2.0480 mhz 000 = sysclk / 1 normal (256 * fs) 8 khz 001 = sysclk / 1.5 not used 010 = sysclk / 2 not used 011 = sysclk / 3 not used 100 = sysclk / 4 not used 101 = sysclk / 5.5 not used 110 = sysclk / 6 not used 111 = reserved reserved table 10 derivation of sample rates in normal / usb modes note that, in usb mode, the adc / dac sample rates do not match exactly with the commonly used sample rates (eg. 44.118 khz instead of 44.100 khz). at most, the difference is less than 0.5%, which is within normal accepted tolerances. data recorded at 44.100 khz sample rate and replayed at 44.118 khz will experience a slight (sub 0.5%) pitch shift as a result of this difference. note: usb mode cannot be used to generate a 48khz samples rate from a 12mhz mclk; the fll should be used in this case. the user must ensure correct synchronisation of data across the digital interfaces. this is particularly important when different sample rates are used, as described above.
wm8350 production data w pd, march 2010, rev 4.2 52 12.3.3 bclk control in master mode, bclk is derived from sysclk via a programmable division set by bclk_div, as described in table 11. bclk_div must be set to an appropriate value to ensure that there are sufficient bclk cycles to transfer the complete data words from the adcs and to the dacs. when the gpio8 pin is used to provide adcbclk in master mode, the clock rate on this pin is also controlled by bclk_div. in slave mode, bclk is generated externally and appears as an input to the codec. the host device must provide sufficient bclk cycles to transfer complete data words to the adcs and dacs. note that, although the adc and dac can run at different sample rates, they share the same bit clock bclk in master mode. in the case where different adc / dac sample rates are used, the bclk frequency should be set according to the higher of the adc / dac bit rates. when the gpio8 pin is used to provide adcbclk, and either the adc or dac is in slave mode, then this restriction does not apply. master/slave operation for bclk is controlled by the bclk_mstr register field. register address bit label default description r40 (28h) clock control 1 7:4 bclk_div [3:0] 0000 sets bclk rate for master mode 0000 = sysclk 0001 = sysclk / 1.5 0010 = sysclk / 2 0011 = sysclk / 3 0100 = sysclk / 4 0101 = sysclk / 5.5 0101 = sysclk / 6 0111 = sysclk / 8 1000 = sysclk / 11 1001 = sysclk / 12 1010 = sysclk / 16 1011 = sysclk / 22 1100 = sysclk / 24 1101 = sysclk / 32 1110 = sysclk / 32 1111 = sysclk / 32 r115 (73h) audio i/f dac control 14 bclk_mstr 0 enables the audio interface bclk generation and enables the bclk pin for master mode 0 = bclk slave mode 1 = bclk master mode table 11 bclk control
production data wm8350 w pd, march 2010, rev 4.2 53 table 12 shows the maximum word lengths supported for a given sysclk and bclk_div, assuming that one or both the adcs and dacs are running at maximum rate. sysclk bclk divider bclk_div bclk rate (master mode) (mhz) maximum word length 12.288 mhz 0000 = sysclk / 1 12.288 32 0001 = sysclk / 1.5 8.192 32 0010 = sysclk / 2 6.144 32 0011 = sysclk / 3 4.096 32 0100 = sysclk / 4 3.072 32 0101 = sysclk / 5.5 2.2341818 20 0110 = sysclk / 6 2.048 20 0111 = sysclk / 8 1.536 16 1000 = sysclk / 11 1.117091 8 1001 = sysclk / 12 1.024 8 1010 = sysclk / 16 0.768 8 1011 = sysclk / 22 0.558545 n/a 1100 = sysclk / 24 0.512 n/a 1101 = sysclk / 32 0.384 n/a 1110 = sysclk / 32 0.384 n/a 1111 = sysclk / 32 0.384 n/a 11.2896 mhz 0000 = sysclk / 1 11.2896 32 0001 = sysclk / 1.5 7.5264 32 0010 = sysclk / 2 5.6448 32 0011 = sysclk / 3 3.7632 32 0100 = sysclk / 4 2.8224 32 0101 = sysclk / 5.5 2.052655 20 0110 = sysclk / 6 1.8816 20 0111 = sysclk / 8 1.4112 16 1000 = sysclk / 11 1.026327 8 1001 = sysclk / 12 0.9408 8 1010 = sysclk / 16 0.7056 8 1011 = sysclk / 22 0.513164 n/a 1100 = sysclk / 24 0.4704 n/a 1101 = sysclk / 32 0.3528 n/a 1110 = sysclk / 32 0.3528 n/a 1111 = sysclk / 32 0.3528 n/a table 12 bclk divider in master mode
wm8350 production data w pd, march 2010, rev 4.2 54 12.3.4 adclrclk / daclrclk control in master mode, adclrclk and daclrclk are derived from bclk via programmable dividers set by adclrc_rate and daclrc_rate. the bclk frequency is derived from sysclk according to bclk_div, as described earlier in table 11. in slave mode, adclrclk and daclrclk are generated externally and are input to the codec. by default, the lrclk pin provides the l/r clock signal for the adc and the dac. if a separate l/r clock is required for the adc and the dac, then a gpio pin must be configured as adclrclk (or adclrcb) as described in section 20. the lrclk pin can be driven by either adclrclk or by daclrclk in master mode; this is selected by the lrc_adc_sel bit as described in table 13. master/slave operation for adclrclk is controlled by the adclrc_ena register field. master/slave operation for daclrclk is controlled by the daclrc_ena register field. register address bit label default description r70 (46h) adc lrc rate 11 adclrc_ena 0 enables the lrc generation for the adc 0 = disabled 1 = enabled 10:0 adclrc_rate [10:0] 040h (64 bclk / lrc) determines the number of bit clocks per lrc phase (when enabled) 00000000000 = invalid ... 00000000111 = invalid 00000001000 = 8 bcps ? 11111111111 = 2047 bcps r53 (35h) dac lrc rate 11 daclrc_ena 0 enables dac lrc generation in master mode 0 = disabled 1 = enabled 10:0 daclrc_rate [10:0] 040h (64 bclk / lrc) determines the number of bit clocks per lrc phase (when enabled) 00000000000 = invalid ... 00000000111 = invalid 00000001000 = 8 bcps ? 11111111111 = 2047 bcps r41 (29h) clock control 2 15 lrc_adc_sel 0 selects either adclrclk or daclrclk to drive lrclk pin in master mode 0 = daclrclk 1 = adclrclk table 13 adclrclk / daclrclk control
production data wm8350 w pd, march 2010, rev 4.2 55 12.3.5 opclk control when the gpio5 pin is configured as codec_opclk, a clock derived from sysclk may be output on this pin to provide clocking for other parts of the system. the frequency of this signal is derived from sysclk and determined by opclk_div, as described in table 14. register address bit label default description r40 (28h) clock control 1 2:0 opclk_div [2:0] 000 opclk frequency (gpio function) 000 = sysclk 001 = sysclk / 2 010 = sysclk / 3 011 = sysclk / 4 100 = sysclk / 5.5 101 = sysclk / 6 110 = reserved 111 = reserved table 14 opclk control 12.3.6 slowclk control a slow clock derived from sysclk may be generated for de-bouncing of the headphone jack detect function or to set the timeout period for volume updates when zero-cross functions are used. this clock is enabled by toclk_ena and its frequency is set by toclk_rate, as described in table 15. register address bit label default description r11 (0bh) power mgmt 4 8 toclk_ena 0 slow clock enable. used for both the jack insert detect debounce circuit and the zero cross timeout. 0 = slow clock disabled 1 = slow clock enabled r40 (28h) clock control 1 15 14 toclk_rate 0 slow clock selection (used for volume update timeouts and for jack detect debounce) 0 = sysclk / 2^21 (slower response) 1 = sysclk / 2^19 (faster response) note: toclk_ena can be accessed through r11 or through r40. reading from or writing to either register location has the same effect. table 15 slowclk control 12.4 fll the integrated fll can be used to generate sysclk from a wide variety of different reference sources and frequencies. the fll can accept a wide range of reference frequencies, which may be high frequency (eg. 12.288mhz) or low frequency (eg. 32.768khz). the fll is tolerant of jitter and may be used to generate a stable sysclk from a less stable input signal. the fll can take as input the external mclk, or adclrclk / daclrclk (in slave modes), or the 32khz crystal oscillator (or external 32khz source). the fll input reference source is selected using the fll_clk_src, as described in table 17. choosing the 32khz source as an input selects either the 32khz gpio input or the internal 32khz oscillator, as illustrated in figure 33. for best audio performance, it is recommended that a high frequency input clock (above 1mhz) is used. the analogue and digital portions of the fll may be enabled independently via fll_osc_ena and fll_ena. when initialising the fll, the analogue circuit must be enabled first by setting fll_osc_ena. the digital circuit may then be enabled on the next register write or later. when changing fll settings, it is recommended that the digital circuit be disabled via fll_ena and then re-enabled after the other register settings have been updated. when changing the input reference frequency f ref , it is recommended that the fll be reset by setting fll_ena to 0.
wm8350 production data w pd, march 2010, rev 4.2 56 the field fll_rate controls internal functions within the fll; it is recommended that only the default setting be used for this parameter. fll_rsp_rate controls the internal loop gain and should be set to the recommended value. the fll output frequency is directly determined from fll_ratio, fll_outdiv and the real number represented by fll_n and fll_k. the field fll_n is an integer (lsb = 1); fll_k is the fractional portion of the number (msb = 0.5). the fractional portion is only valid when enabled by the field fll_frac. it is recommended that fll_frac is enabled at all times. the fll frequency is determined according to the following equation: f out = (f vco / fll_outdiv) f vco = (f ref x n.k x fll_ratio) f vco must be in the range 90-100 mhz. the value of fll_outdiv should be selected as follows according to the desired output f out . output frequency f out fll_outdiv 2.8125 mhz - 3.125 mhz 4h (divide by 32) 5.625 mhz - 6.25 mhz 3h (divide by 16) 11.25 mhz - 12.5 mhz 2h (divide by 8) 22.5 mhz - 25 mhz 1h (divide by 4) table 16 choice of fll_outdiv note that the output frequencies that do not lie within the ranges quoted above cannot be guaranteed across the full range of device operating temperatures. once f vco has been determined, the value of fll_ratio should be selected in accordance with the recommendations in table 17. the value of n.k can then be determined using the equation above. fll_ref_freq should be set as described in table 17. for best performance, fll fractional mode should always be used. therefore, if the calculations yield an integer value of n.k, then it is recommended to adjust fll_ratio in order to obtain a non- integer value of n.k. the register fields that control the fll are described in table 17. example settings for a variety of reference frequencies and output frequencies are shown in table 18. register address bit label default description r42 (2ah) fll control 1 15 fll_ena 0 digital enable for fll 0 = disabled 1 = enabled note that fll_osc_ena must be enabled before enabling fll_ena. 14 fll_osc_en a 0 analogue enable for fll 0 = fll disabled 1 = fll enabled note that fll_osc_ena must be enabled before enabling fll_ena. 10:8 fll_outdiv [2:0] 010 f out clock divider 000 = f vco / 2 001 = f vco / 4 010 = f vco / 8 011 = f vco / 16 100 = f vco / 32 101 = reserved 110 = reserved
production data wm8350 w pd, march 2010, rev 4.2 57 register address bit label default description 111 = reserved 7:4 fll_rsp_rat e 0000 fll loop gain 0000 = x 1 (recommended value) 0001 = x 2 0010 = x 4 0011 = x 8 0100 = x 16 0101 = x 32 0110 = x 64 0111 = x 128 1000 = x 256 recommended that these are not changed from default. 2:0 fll_rate [2:0] 000 frequency of the fll control block 000 = f vco / 1 (recommended value) 001 = f vco / 2 010 = f vco / 4 011 = f vco / 8 100 = f vco / 16 101 = f vco / 32 recommended that these are not changed from default. r43 (2bh) fll control 2 15:11 fll_ratio [4:0] 14 (0eh) clk_vco is divided by this integer, valid from 1 .. 31. 1 recommended for high freq reference 8 recommended for low freq reference 9:0 fll_n [9:0] 086h fll integer multiplier n for clk_ref r44 (2ch) fll control 3 15:0 fll_k [15:0] c226h fll fractional multiplier k for clk_ref. this is only used if fll_frac is set. r45 (2dh) fll control 4 7 fll_ref_fre q 0 low frequency reference locking 0 = high frequency reference locking (recommended for reference clock > 48khz) 1 = lock frequency reference locking (recommended for reference clock <= 48khz) 5 fll_frac 0 fractional enable 0 = integer mode 1 = fractional mode 1 recommended in all cases 1:0 fll_clk_src [1:0] 00 select fll input clock source 00 = mclk 01 = daclrclk 10 = adclrclk 11 = clk_32k_ref table 17 fll control registers
wm8350 production data w pd, march 2010, rev 4.2 58 12.4.1 example fll calculation to generate 12.288 mhz output (f out ) from a 12.000 mhz reference clock (f ref ): ? determine fll_outdiv for the required output frequency as given by table 16: for f out = 12.288 mhz, fll_outdiv = 2h (divide by 8) ? calculate f vco for the given fll_outdiv: f vco = f out * fll_outdiv = 12.288 mhz * 8 = 98.304 mhz ? calculate the required n.k x fll_ratio for the given f ref and f vco .: n.k x fll_ratio = f vco / f ref = 8.192 ? determine fll_ref_freq for the given f ref as given by table 17: for f ref = 12mhz, fll_ref_freq = 0 ? determine fll_ratio as given by table 17: for high frequency reference, fll_ratio = 1 ? calculate n.k for the given fll_ratio: n.k = 8.192 / 1 = 8.192 ? determine fll_n and fll_k from the integer and fractional portions of n.k: fll_n is 8. fll_k is 0.192 ? set fll_frac according to whether fractional mode is required: fll_k is 0.192, so fractional mode is required; fll_frac = 1 note that, for best performance, fll fractional mode should always be used. if the calculations yield an integer value of n.k, then it is recommended to adjust fll_ratio in order to obtain a non-integer value of n.k.
production data wm8350 w pd, march 2010, rev 4.2 59 12.4.2 example fll settings table 18 provides example fll settings for generating common sysclk fr equencies from a variety of low and high frequency reference inputs. f ref f out f vco fll_n fll_k fll_ ratio fll_ outdiv fll_frac fll_ref_ freq 32.000 khz 12.288 mhz 98.304 mhz 438 (1b6h) 0.857143 (db6eh) 7 2h (divide by 8) 1 1 32.000 khz 11.2896 mhz 90.3168 mhz 352 (160h) 0.8 (cccch) 8 2h (divide by 8) 1 1 32.768 khz 12.288 mhz 98.304 mhz 428 (1ach) 0.571429 (9249 h) 7 2h (divide by 8) 1 1 32.768 khz 11.288576 mhz 90.308608 mhz 344 (158h) 0.500000 (8000 h) 8 2h (divide by 8) 1 1 32.768 khz 11.2896 mhz 90.3168 mhz 344 (158h) 0.53125 (8800h) 8 2h (divide by 8) 1 1 48 khz 12.288 mhz 98.304 mhz 292 (124h) 0.571429 (9249 h) 7 2h (divide by 8) 1 1 11.3636 mhz 12.368544 mhz 98.948354 mhz 8 (008h) 0.707483 (b51dh) 1 2h (divide by 8) 1 0 12.000 mhz 12.288 mhz 98.3040 mhz 8 (008h) 0.192 (3127h) 1 2h (divide by 8) 1 0 12.000 mhz 11.289597 mhz 90.3168 mhz 7 (007h) 0.526398 (86c2h) 1 2h (divide by 8) 1 0 12.288 mhz 12.288 mhz 98.304 mhz 2 (002h) 0.666667 (aaabh) 3 2h (divide by 8) 1 0 12.288 mhz 11.2896 mhz 90.3168 mhz 7 (007h) 0.35 (599ah) 1 2h (divide by 8) 1 0 13.000 mhz 12.287990 mhz 98.3040 mhz 7 (007h) 0.56184 (8fd5h) 1 2h (divide by 8) 1 0 13.000 mhz 11.289606 mhz 90.3168 mhz 6 (006h) 0.94745 (f28ch) 1 2h (divide by 8) 1 0 19.200 mhz 12.287988 mhz 98.3040 mhz 5 (005h) 0.119995 (1eb8h) 1 2h (divide by 8) 1 0 19.200 mhz 11.289588 mhz 90.3168 mhz 4 (004h) 0.703995 (b439h) 1 2h (divide by 8) 1 0 table 18 example fll settings
wm8350 production data w pd, march 2010, rev 4.2 60 13 audio codec subsystem 13.1 general description the wm8350 includes a high-performance stereo codec. analogue output buffers and input amplifiers are integrated on-chip, enabling the wm8350 to connect directly to headphones and microphones as well as line-in and line-out sockets. the codec handles analogue-to-digital and digital-to-analogue conversion for audio signals, and integrates programmable filtering. analogue mixing capabilities are also provided. digital audio data is transferred to and from the audio codec through a dedicated audio interface that supports a number of industry-standard data formats. electrical power is provided to the codec through the following pins: ? dbvdd and dgnd ? for the codec?s audio interface ? dcvdd and dgnd ? for the codec?s digital core ? hpvdd and hpgnd ? for the analogue outputs ? avdd and ref_gnd ? for adc and dac references ? avdd and gnd ? for all other analogue functions (including input amplifiers and buffers, adc, dac, and analogue mixers)
production data wm8350 w pd, march 2010, rev 4.2 61 13.2 audio paths figure 36 wm8350 audio path diagram
wm8350 production data w pd, march 2010, rev 4.2 62 13.3 enabling the audio codec before the audio codec can be used, it must be enabled by writing to the codec_ena, sysclk_ena and bias_ena register bits. address bit label default description r12 (0ch) power mgmt 5 12 codec_en a 0 master codec enable bit. until this bit is set, all codec registers are held in reset. 0 = all codec registers held in reset 1 = codec registers operate normally. r11 (0bh) power mgmt 4 14 sysclk_ena 0 codec sysclk enable 0 = disabled 1 = enabled r8 (08h) power mgmt 1 5 bias_ena 0 enables bias to analogue audio codec circuitry 0 = disabled 1 = enabled table 19 enabling the audio codec each individual part of the audio codec (e.g. left/right adc, left/right dac, each analogue output pin, mic bias etc.) also has its own enable bit, which must be set before that part of the codec can be used. these enable bits are described in the sections that follow. in order to minimize output pop and click noise, it is recommended that the wm8350 device is powered up and down under control using the following sequences: power up: 1. ensure the codec power supplies are available before the codec is enabled (codec_ena = 1). the order in which this is done should be dcvdd, dbvdd then hpvdd and/or avdd 2. mute all outputs 3. enable the anti-pop circuits by setting anti_pop. there are three anti-pop setting options. recommended value is anti_pop = 01. 4. ensure external capacitors are fully discharged on all outputs that are used by delaying 250ms 5. set the mixers and dac volume to required settings 6. enable vmid by setting vmid_ena = 1. vmid should raise in a controlled fashion and charge the output capacitors 7. wait approx 500ms to allow vmid to charge. 8. disable the anti-pop circuits by setting anti_pop = 00. 9. un-mute all outputs
production data wm8350 w pd, march 2010, rev 4.2 63 power down: 1. mute all outputs 2. enable anti-pop circuits by setting anti_pop = 01. 3. disable circuits down-stream on outputs 4. disable vmid by setting vmid_ena = 0. 5. wait for vmid to discharge (typically 500ms) 6. disable the anti-pop circuits by setting anti_pop = 00. 7. disable all outputs 13.4 input signal path the wm8350 has multiple analogue inputs. there are two input channels, left and right, each of which consists of an input pga stage followed by a boost/mix stage switch into the hi-fi adc. each input pga path has three input pins which can be configured in a variety of ways to accommodate single-ended, differential or dual differential microphones. there are two auxiliary input pins which can be fed into to the input boost/mix stage as well as driving into the output path. a bypass path exists from the output of the boost/mix stage into the output left/right mixers. 13.4.1 microphone inputs the microphone inputs of the wm8350 are designed to accommodate electret condenser microphones or analogue line-in signals. they comprise the following pins: ? in1lp: first non-inverting input, left channel ? in2l: second non-inverting input, left channel ? in1ln: inverting input, left channel ? in1rp: first non-inverting input, right channel ? in2r: second non-inverting input, right channel ? in1rn: inverting input, right channel the non-inverting inputs have constant input impedance to vmid, whereas the inverting input?s impedance varies with the pre-amplifier?s gain. (note: the terms ?inverting? and ?non-inverting? refer to the microphone pre-amplifiers only. for overall behaviour, the inverting record mixer and the adc, whose output can optionally be inverted in the digital domain, must also be taken into account.) each channel has a programmable pre-amplifier, which supports single-ended or pseudo-differentially connected microphones. the amplified signal for each channel can be digitised in the audio adc and/or mixed into the output signal path.
wm8350 production data w pd, march 2010, rev 4.2 64 figure 37 microphone inputs and pre-amplifiers 13.4.2 enabling the pre-amplifiers address bit label default description r9 (09h) power mgmt 2 9 inr_ena 0 right input pga enable 0 = disabled 1 = enabled 8 inl_ena 0 left input pga enable 0 = disabled 1 = enabled r80 (50h) left input volume 15 inl_ena 0 left input pga enable 0 = disabled 1 = enabled r81 (51h) right input volume 15 inr_ena 0 right input pga enable 0 = disabled 1 = enabled note: these bits can be accessed through r9 or through r80/r81. reading from or writing to either register location has the same effect. table 20 enabling the microphone pre-amplifiers
production data wm8350 w pd, march 2010, rev 4.2 65 13.4.3 selecting input signals address bit label default description r72 (48h) mic input control 0 in1lp_ena 1 connect in1lp pin to left channel input pga amplifier positive terminal. 0 = in1lp not connected to input pga 1 = input pga amplifier positive terminal connected to in1lp (constant input impedance) 1 in1ln_ena 1 connect in1ln pin to left channel input pga negative terminal. 0 = in1ln not connected to input pga 1 = in1ln connected to input pga amplifier negative terminal. 2 in2l_ena 0 connect in2l pin to left channel input pga amplifier 0 = in2l not connected to input pga amplifier 1 = in2l connected to input pga amplifier 8 in1rp_ena 1 connect in1rp pin to right channel input pga amplifier positive terminal. 0 = in1rp not connected to input pga 1 = right channel input pga amplifier positive terminal connected to in1rp (constant input impedance) 9 in1rn_ena 1 connect in1rn pin to right channel input pga negative terminal. 0 = in1rn not connected to input pga 1 = in1rn connected to right channel input pga amplifier negative terminal. 10 in2r_ena 0 connect in2r pin to right channel input pga 0 = in2r not connected to input pga amplifier 1 = in2r connected to input pga amplifier table 21 selecting input pins for the microphone pre-amplifiers
wm8350 production data w pd, march 2010, rev 4.2 66 13.4.4 controlling the pre-amplifier gains the gain of each microphone pre-amplifier is controlled by writing to the appropriate control registers. the gain of each pre-amplifier applies to all three inputs associated with that pre-amplifier, whether inverting or non-inverting. although the gain settings for each pre-amplifier are in two separate registers, both gains can be changed simultaneously using the in_vu bit (see table 22). additionally, it is also possible to control the gain updates to only occur when the respective signal crosses through zero. this feature reduces clicking noise caused by gain changes. address bit label default description r80 (50h) left input volume 14 inl_mute 0 mute control for left channel input pga: 0 = input pga not muted, normal operation 1 = input pga muted (and disconnected from the following input record mixer). 13 inl_zc 0 left channel input pga zero cross enable: 0 = update gain when gain register changes 1 = update gain on 1st zero cross after gain register write. 8 in_vu 0 input left pga and input right pga volume do not update until a 1 is written to either in_vu register bit. 7:2 inl_vol [5:0] 01_0000 left channel input pga volume 000000 = -12db 000001 = -11.25db . 010000 = 0db . 111111 = 35.25db r81 (51h) right input volume 14 inr_mute 0 mute control for right channel input pga: 0 = input pga not muted, normal operation 1 = input pga muted (and disconnected from the following input record mixer). 13 inr_zc 0 right channel input pga zero cross enable: 0 = update gain when gain register changes 1 = update gain on 1st zero cross after gain register write. 8 in_vu 0 input left pga and input right pga volume do not update until a 1 is written to either in_vu register bit. 7:2 inr_vol [5:0] 01_0000 right channel input pga volume 000000 = -12db 000001 = -11.25db . 010000 = 0db . 111111 = 35.25db table 22 controlling the microphone pre-amplifier gain
production data wm8350 w pd, march 2010, rev 4.2 67 13.4.5 microphone biasing the wm8350 provides a programmable, low-noise bias voltage for condenser electret microphones on the micbias pin. address bit label default description r8 (08h) power mgmt 1 4 micb_ena 0 microphone bias enable 0 = off (high impedance output) 1 = on r74 (4ah) mic bias control 15 micb_ena 14 micb_sel 0 microphone bias voltage control: 0 = 0.9 * avdd 1 = 0.75 * avdd note: micb_ena can be accessed through r8 or through r74. reading from or writing to either register location has the same effect. table 23 controlling the microphone bias voltage 13.4.6 auxiliary inputs (in3l and in3r) the wm8350 provides two additional analogue input pins, in3l and in3r, for line-level audio or ?beep? signals. each pin has a simple input buffer whose output signal can be digitised in the audio adc and/or mixed into the output signal path. the right input in3r may also be connected to the output beep mixer, for output on out2r (see table 42). the input buffers have a nominal default gain of -1 (0db). in3l 20k in3l_short, r73[6] - + 20k vmid in3r 20k in3r_short, r73[14] - + 20k vmid to: left input mixer, left output mixer to: right input mixer, right output mixer, output beep mixer figure 38 auxiliary input buffers
wm8350 production data w pd, march 2010, rev 4.2 68 register address bit label default description r9 (09h) power mgmt 2 10 in3l_ena 0 in3l amplifier enable 0 = disabled 1 = enabled 11 in3r_ena 0 in3r amplifier enable 0 = disabled 1 = enabled r73 (49h) in3 input control 7 in3l_ena 0 in3l amplifier enable 0 = disabled 1 = enabled 15 in3r_ena 0 in3r amplifier enable 0 = disabled 1 = enabled 6 in3l_short 0 short circuit internal input resistor for in3l amplifier. 0 = internal resistor in circuit 1 = internal resistor shorted 14 in3r_short 0 short circuit internal input resistor for in3r amplifier. 0 = internal resistor in circuit 1 = internal resistor shorted note: in3l_ena and in3r_ena can be accessed through r9 or through r73. reading from or writing to either register location has the same effect. table 24 controlling the auxiliary input buffers
production data wm8350 w pd, march 2010, rev 4.2 69 13.4.7 input mixers the wm8350 has mixers in the input signal paths. this allows each adc to record either a single input signal or a mix of several signals, as desired. the gain for the different input signals can also be adjusted. each input mixer has four inputs: ? the output of the respective (left/right) microphone pre-amplifier ? the in2l and in2r pins (used as a line input, bypassing the microphone pre-amplifiers) ? the output of the respective (left/right) auxiliary input buffer (ie. inputs in3l or in3r) ? the output of the out4 amplifier (only one input mixer at a time can take this signal) left adc input output from in3l amplifier output from left microphone pre-amplifier in2l in3l_mixinl_vol, r98[11:9] in2l_mixinl_vol, r98[3:1] inl_mixinl_vol, r98[0] -12db to + 6db, and mute -12db to + 6db and mute 0db or +20db output from out4 mixer out4_mixin_vol, r100[3:1] -12db to + 6db and mute output from right microphone pre-amplifier inr2 inr2_mixinr_vol, r99[7:5] inr_mixinr_vol, r99[0] 0db or +20db -12db to + 6db and mute output from in3r amplifier in3r_mixinr_vol, r99[15:13] -12db to + 6db, and mute out4_mixin_dst, r100[15] -1 -1 out3 mixer right adc input out4 mixer figure 39 input mixers
wm8350 production data w pd, march 2010, rev 4.2 70 address bit label default description r9 (09h) power mgmt 2 7 mixinr_ena 0 right input mixer enable 0 = disabled 1 = enabled 6 mixinl_ena 0 left input mixer enable 0 = disabled 1 = enabled r98 (62h) input mixer volume for left channel 0 inl_mixinl_v ol 0 boost enable for left channel input pga: 0 = pga output has +0db gain through input record mixer. 1 = pga output has +20db gain through input record mixer. 3:1 in2l_mixinl_ vol [2:0] 000 in2l amplifier volume control to right input mixer. 000 = path disabled (disconnected) 001 = -12db gain through mixer 010 = -9db gain through mixer ? 111 = +6db gain through mixer 11:9 in3l_mixinl_ vol 000 in3l amplifier volume control to right input mixer. 000 = path disabled (disconnected) 001 = -12db gain through mixer 010 = -9db gain through mixer ? 111 = +6db gain through mixer r99 (63h) input mixer volume for right channel 0 inr_mixinr_ vol 1 boost enable for right channel input pga: 0 = pga output has +0db gain through input record mixer. 1 = pga output has +20db gain through input record mixer. 7:5 in2r_mixinr_ vol [2:0] 000 in2r amplifier volume control to right input mixer. 000 = path disabled (disconnected) 001 = -12db gain through mixer 010 = -9db gain through mixer ? 111 = +6db gain through mixer 15:13 in3r_mixinr_ vol [2:0] 000 in3r amplifier volume control to right input mixer. 000 = path disabled (disconnected) 001 = -12db gain through mixer 010 = -9db gain through mixer ? 111 = +6db gain through mixer r100 (64h) out4 mixer control 15 out4_mixin_ dst 0 select routing of out4 to input mixers. 0 = out4 to left input mixer. 1 = out4 to right input mixer. 3:1 out4_mixin_ vol [2:0] 000 controls the gain of out4 to left and right input mixers: 000 = path disabled (left and right mute) 001 = -12db gain through boost stages 010 = -9db gain through boost stages ?. 111 = +6db gain through boost stages table 25 input mixer control
production data wm8350 w pd, march 2010, rev 4.2 71 13.5 analogue to digital converter (adc) the high-performance stereo adc within the wm8350 converts analogue input signals to the digital domain. it uses a multi-bit, over-sampled sigma-delta architecture. the adc?s over-sampling rate is selectable to control the trade-off between best audio performance and lowest power consumption. a variety of digital filtering stages process the adc?s digital output signal before it is sent to the wm8350 audio interface. these include: ? digital decimation and filtering needed for the adc ? digital volume control ? a programmable high-pass filter the audio adc supports all commonly used audio sampling rates between 8khz and 48khz (see figure 40). figure 40 adc digital filter path address bit label default description r11 (0bh) power mgmt 4 2 adcl_ena 0 left adc enable 0 = disabled 1 = enabled when adcr and adcl are used together as a stereo pair, then both adcs must be enabled together using a single register write to register r11 (0bh). r66 (42h) adc digital volume l 15 r11 (0bh) power mgmt 4 3 adcr_ena 0 right adc enable 0 = disabled 1 = enabled when adcr and adcl are used together as a stereo pair, then both adcs must be enabled together using a single register write to register r11 (0bh). r67 (43h) adc digital volume r 15 r64 (40h) adc control 1 adcl_datinv 0 adc left channel polarity: 0 = normal 1 = inverted 0 adcr_datinv 0 adc right channel polarity 0 = normal 1 = inverted note: adcl_ena and adcr_ena can be accessed through r11 or through r66/r67. reading from or writing to either register location has the same effect. table 26 enabling the adc left and right channels when adcr and adcl are used together as a stereo pair, then it is important that adcr_ena and adcl_ena are enabled at the same time using a single register write. this must be implemented by writing to the bits in register r11 (0bh). this ensures that the system starts up both channels in a synchronous manner.
wm8350 production data w pd, march 2010, rev 4.2 72 13.5.1 adc volume control programmable digital volume control is provided to attenuate the adc?s output signal. address bit label default description r66 (42h) adc digital volume l 8 adc_vu 0 adc left and adc right volume do not update until a 1 is written to either adc_vu register bit. 7:0 adcl_vo l [7:0] 1100_000 0 left adc digital volume control 0000 0000 = digital mute 0000 0001 = -71.625db 0000 0010 = -71.25db ... 0.375db steps up to 1110 1111 = +17.625db r67 (43h) adc digital volume r 8 adc_vu 0 adc left and adc right volume do not update until a 1 is written to either adc_vu register bit. 7:0 adcr_vo l [7:0] 1100_000 0 right adc digital volume control 0000 0000 = digital mute 0000 0001 = -71.625db 0000 0010 = -71.25db ... 0.375db steps up to 1110 1111 = +17.625db table 27 adc volume control 13.5.2 adc high-pass filter a digital high-pass filter is provided to remove dc offsets from the adc signal. address bit label default description r11 (0bh) power mgmt 4 13 adc_hpf_en a 0 high pass filter enable 0 = disabled 1 = enabled r64 (40h) adc control 15 9:8 adc_hpf_cu t [1:0] 00 select cut-off frequency for high-pass filter 00 = 2^-11 (first order) = 3.7hz @ fs=44.1khz 01 = 2^-5 (2nd order) = ~250hz @ fs=8khz 10 = 2^-4 (2nd order) = ~250hz @ fs=16khz 11 = 2^-3 (2nd order) = ~250hz @ fs=32khz note: adc_hpf_ena can be accessed through r11 or through r64. reading from or writing to either register location has the same effect. table 28 controlling the adc high-pass filter
production data wm8350 w pd, march 2010, rev 4.2 73 13.6 digital mixing 13.6.1 digital sidetone a digital sidetone is available when adcs and dacs are operating at the same sample rate. digital data from either left or right adc can be mixed with the audio interface data on the left and right dac channels. sidetone data is taken from the adc high pass filter output, to reduce low frequency noise in the sidetone (e.g. wind noise or mechanical vibration). the digital sidetone will not function when adcs and dacs are operating at different sample rates. when using the digital sidetone, it is recommended that the adcs are enabled before un-muting the dacs to prevent pop noise. the dac volumes and sidetone volumes should be set to an appropriate level to avoid clipping at the dac input. the digital sidetone is controlled as shown table 29. register address bit label default description r68 (44h) adc divider 11:8 adcl_dac_svol [3:0] 0000 controls left digital side tone volume from -36db to 0db in 3db steps. 0000 = -36db 0001 = -33db ? (3db steps) 1011 = -3db 1100 = 0db 11xx = 0db 7:4 adcr_dac_svol [3:0] 0000 controls right digital side tone volume from -36db to 0db in 3db steps. 0000 = -36db 0001 = -33db ? (3db steps) 1011 = -3db 1100 = 0db 11xx = 0db r60 (3ch) digital side tone control 13:12 adc_to_dacl [1:0] 00 dac left side-tone control 11 = unused 10 = mix adcr into dacl 01 = mix adcl into dacl 00 = no side-tone mix into dacl 11:10 adc_to_dacr [1:0] 00 dac right side-tone control 11 = unused 10 = mix adcr into dacr 01 = mix adcl into dacr 00 = no side-tone mix into dacr table 29 digital side tone control the coding of adcl_dac_svol and adcr_dac_svol is described in table 30.
wm8350 production data w pd, march 2010, rev 4.2 74 adcl_dac_svol or adcr_dac_svol sidetone volume 0000 -36 0001 -33 0010 -30 0011 -27 0100 -24 0101 -21 0110 -18 0111 -15 1000 -12 1001 -9 1010 -6 1011 -3 1100 0 1101 0 1110 0 1111 0 table 30 digital side tone control
production data wm8350 w pd, march 2010, rev 4.2 75 13.7 digital to analogue converter (dac) the wm8350 contains a high-performance stereo dac to convert digital audio signals to the analogue domain. audio data is passed to the wm8350 via the audio interface, and passes through a variety of digital filtering stages before reaching the dac. these include: ? digital volume control ? digital filtering, interpolation and sigma-delta modulation functions needed for the dac the audio dac supports all commonly used audio sampling rates between 8khz and 48khz. figure 41 dac overview address bit label default description r11 (0bh) power mgmt 4 4 dacl_en a 0 left dac enable 0 = disabled 1 = enabled r50 (32h) dac digital volume left 15 r11 (0bh) power mgmt 5 dacr_en a 0 right dac enable 0 = disabled 1 = enabled r51 (33h) dac digital volume right 15 note: these bits can be accessed through r11 or through r50/r51. reading from or writing to either register location has the same effect. table 31 dac enable
wm8350 production data w pd, march 2010, rev 4.2 76 13.7.1 dac playback volume control register address bit label default description r50 (32h) dac digital volume left 8 dac_vu 0 dac left and dac right volume do not update until a 1 is written to either dac_vu register bit. 7:0 dacl_vol [7:0] 1100_0000 left dac digital volume control: 0000_0000 = digital mute 0000_0001 = -71.625db 0000_0010 = -71.25db ? (0.375db steps) 1100_000 = 0db r51 (33h) dac digital volume right 8 dac_vu 0 dac left and dac right volume do not update until a 1 is written to either dac_vu register bit. 7:0 dacr_vol [7:0] 1100_0000 right dac digital volume control: 0000_0000 = digital mute 0000_0001 = -71.625db 0000_0010 = -71.25db ? (0.375db steps) 1100_000 = 0db table 32 dac volume control 13.7.2 dac soft mute and soft un-mute the wm8350 has a soft mute function which, when enabled, gradually attenuates the volume of the dac output. when soft mute is disabled, the gain will either gradually ramp back up to the digital gain setting, or return instantly to the digital gain setting, depending on the dac_mutemode register bit. the dac is soft-muted by default (dac_mute = 1). to play back an audio signal, this function must first be disabled by setting dac_mute to 0. soft mute mode would typically be enabled (dac_mutemode = 1) when using dac_mute during playback of audio data so that when dac_mute is subsequently disabled, the sudden volume increase will not create pop noise by jumping immediately to the previous volume level (e.g. resuming playback after pausing during a track). soft mute mode would typically be disabled (dac_mutemode = 0) when un-muting at the start of a music file, in order that the first part of the track is not attenuated (e.g. when starting playback of a new track, or resuming playback after pausing between tracks). dac muting and un-muting using volume control bits dacl_vol and dacr_vol. dac muting and un-muting using soft mute bit dac_mute. soft un-mute not enabled (dac_mutemode = 0). dac muting and un-muting using soft mute bit dac_mute. soft un-mute enabled (dac_mutemode = 1). figure 42 dac mute control
production data wm8350 w pd, march 2010, rev 4.2 77 the volume ramp rate during soft mute and un-mute is controlled by the dac_muterate bit. ramp rates of fs/32 and fs/2 are selectable as shown register address bit label default description r58 (3ah) dac mute 14 dac_mute 1 dac mute 0 = disabled 1 = enabled r59 (3bh) dac mute volume 14 dac_mutem ode 0 dac soft mute mode 0 = disabling soft-mute (dac_mute=0) will cause the volume to change immediately to the dacl_vol / dacr_vol settings 1 = disabling soft-mute (dac_mute=0) will cause the volume to ramp up gradually to the dacl_vol / dacr_vol settings 13 dac_muter ate 0 dac soft mute ramp rate 0 = fast ramp (24khz at fs=48k, providing maximum delay of 10.7ms) 1 = slow ramp (1.5khz at fs=48k, providing maximum delay of 171ms) table 33 dac soft-mute control 13.7.3 dac de-emphasis digital de-emphasis can be applied to the dac playback data (e.g. when the data comes from a cd with pre-emphasis used in the recording). de-emphasis filtering is available for sample rates of 48khz, 44.1khz and 32khz. register address bit label default description r48 (30h) dac control 5:4 deemp [1:0] 00 de-emphasis control 11 = 48khz sample rate 10 = 44.1khz sample rate 01 = 32khz sample rate 00 = no de-emphasis table 34 dac de-emphasis control
wm8350 production data w pd, march 2010, rev 4.2 78 13.7.4 dac output phase and mono mixing the digital audio data is converted to oversampled bit streams in the on-chip 24-bit digital interpolation filters. the bitstream data enters two multi-bit, sigma-delta dacs, which convert them to high quality analogue audio signals. the multi-bit dac architecture reduces high frequency noise and sensitivity to clock jitter. it also uses a dynamic element matching technique for high linearity and low distortion. in normal operation, the left and right channel digital audio data is converted to analogue in two separate dacs. it is also possible for the dacs to output a mono mix of left and right channels, using dac_mono. both dacs must be enabled for this mono mix to function. register address bit label default description r48 (30h) dac control 13 dac_mono 0 adds left and right channel and halves the resulting output to create a mono output 1 dacl_datinv 0 dac data left channel polarity 0 = normal 1 = inverted 0 dacr_datinv 0 dac data right channel polarity 0 = normal 1 = inverted table 35 dac mono mix and phase invert select 13.7.5 dac stopband attenuation the dac digital filter type is selected by the dac_sb_filt register bit as shown in table 36. register address bit label default description r59 (3bh) dac digital control 12 dac_sb_filt 0 selects dac filter characteristics 0 = normal mode 1 = sloping stopband mode table 36 dac filter selection
production data wm8350 w pd, march 2010, rev 4.2 79 13.8 output signal path the analogue output pins produce audio signals to drive headphones, line-out connections and/or external loudspeaker amplifiers. these pins include: ? out1l and out1r ? out2l and out2r ? out3 and out4 out1l, out1r, out2l and out2r have individual analogue volume pgas with -57db to +6db ranges. ac-coupled and capless headphone drive modes are available. common mode noise rejection is possible using the hpcom connection. out3 and out4 can be configured as a stereo line out (out3 is left output and out4 is right output). out3 and out4 can also be used as a vmid buffer to provide a ?ground? reference for headphone outputs, eliminating the need for dc blocking capacitors. alternatively, out4 can be used to provide a mono mix of left and right channels. all analogue output pins are powered through the hpvdd and hpgnd pins. each output can drive a headphone load down to 16 . there are four output mixers in the output signal path: the left and right channel mixers which control the signals to headphone (and optionally the line outputs) and also dedicated out3 and out4 mixers. 13.8.1 enabling the analogue outputs each output can be individually enabled or disabled via dedicated control bits. address bit label default description r10 (0ah) 0 out1l_ena 0 out1l enable 0 = disabled 1 = enabled r104 (68h) 15 r10 (0ah) 1 out1r_ena 0 out1r enable 0 = disabled 1 = enabled r105 (69h) 15 r10 (0ah) 2 out2l_ena 0 out2l enable 0 = disabled 1 = enabled r106 (70h) 15 r10 (0ah) 3 out2r_ena 0 out2r enable 0 = disabled 1 = enabled r107 (71h) 15 r9 (09h) 4 out3_ena 0 out3 enable 0 = disabled 1 = enabled r92 (5ch) 15 r9 (09h) 5 out4_ena 0 out4 enable 0 = disabled 1 = enabled r93 (5dh) 15 note: each bit can be accessed through two separate control registers. reading from or writing to either register location has the same effect. table 37 enabling the analogue outputs
wm8350 production data w pd, march 2010, rev 4.2 80 13.8.2 output mixers the left and right output channel mixers are shown in figure 43. these mixers allow the aux inputs, the adc bypass and the dac left and right channels to be combined as desired. this allows a mono mix of the dac channels to be done as well as mixing in external line-in from the in3. the in3l/in3r and pga inputs have individual volume control from -15db to +6db. the dac channel volumes can be adjusted in the digital domain if required. the outputs of these mixers are routed to out1l/out1r or out2l/out2r. they can also optionally be routed to the out3 and out4 mixers. figure 43 output mixers
production data wm8350 w pd, march 2010, rev 4.2 81 each output mixer can be enabled or disabled by writing either to the power management control register or to the respective mixer?s own control register. each analogue signal going into the output mixers can be independently enabled or muted for each mixer. address bit label default description r88 (58h) left mixer control 0 inl_to_mixou tl 0 left input pga output to left output mixer 0 = not selected 1 = selected 1 inr_to_mixou tl 0 right input pga output to left output mixer 0 = not selected 1 = selected 2 in3l_to_mixo utl 0 in3l amplifier output to left output mixer: 0 = not selected 1 = selected 11 dacl_to_mix outl 0 left dac output to left output mixer 0 = not selected 1 = selected 12 dacr_to_mix outl 0 right dac output to left output mixer 0 = not selected 1 = selected 15 mixoutl_ena 0 left output mixer enable 0 = disabled 1= enabled r9 (09h) power mgmt 2 0 r89 (59h) right mixer control 0 inl_to_mixou tr 0 left input pga output to right output mixer 0 = not selected 1 = selected 1 inr_to_mixou tr 0 right input pga output to right output mixer 0 = not selected 1 = selected 3 in3l_to_mixo utr 0 in3l amplifier output to right output mixer: 0 = not selected 1 = selected 11 dacl_to_mix outr 0 left dac output to right output mixer 0 = not selected 1 = selected 12 dacr_to_mix outr 0 right dac output to right output mixer 0 = not selected 1 = selected 15 mixoutr_ena 0 right output mixer enable 0 = disabled 1 = enabled r9 (09h) power mgmt 2 1 note: mixoutl_ena and mixoutr_ena can be accessed through two separate control registers. reading from or writing to either register location has the same effect. table 38 selecting signals into the output mixers
wm8350 production data w pd, march 2010, rev 4.2 82 the gain for microphone pre-amp and auxiliary input (in3l/in3r) signals can be independently adjusted for each output mixer. this does not affect the volume of the same signals going into the separate record mixer. the level of the dac output signals can be adjusted using the dac?s digital volume control function (see table 32). address bit label default description r96 (60h) output left mixer volume 3:1 inl_mixoutl_vol [2:0] 000 left input pga volume control to left output mixer. 000 = path disabled (disconnected) 001 = -12db gain through mixer 010 = -9db gain through mixer ? 111 = +6db gain through mixer 7:5 inr_mixoutl_vo l [2:0] 000 right input pga volume control to left output mixer. 000 = path disabled (disconnected) 001 = -12db gain through mixer 010 = -9db gain through mixer ? 111 = +6db gain through mixer 11:9 in3l_mixoutl_vo l [2:0] 000 in3l amplifier volume control to left output mixer 000 = path disabled (disconnected) 001 = -12db gain through mixer 010 = -9db gain through mixer ? 111 = +6db gain through mixer r97 (61h) output right mixer volume 3:1 inl_mixoutr_vo l [2:0] 000 left input pga volume control to right output mixer. 000 = path disabled (disconnected) 001 = -12db gain through mixer 010 = -9db gain through mixer ? 111 = +6db gain through mixer 7:5 inr_mixoutr_vo l [2:0] 000 right input pga volume control to right output mixer. 000 = path disabled (disconnected) 001 = -12db gain through mixer 010 = -9db gain through mixer ? 111 = +6db gain through mixer 15:1 3 in3r_mixoutr_v ol [2:0] 000 in3r amplifier volume control to right output mixer. 000 = path disabled (disconnected) 001 = -12db gain through mixer 010 = -9db gain through mixer ? 111 = +6db gain through mixer table 39 controlling the gain of signals going into the output mixers
production data wm8350 w pd, march 2010, rev 4.2 83 13.9 analogue outputs 13.9.1 out1l and out1r the headphone outputs, out1l and out1r can drive a 16 or 32 headphone load, either through dc blocking capacitors, or dc coupled without any capacitor. each output has an analogue volume control pga with a gain range of -57db to +6db as shown in figure 44. common mode noise rejection is also possible on the out1l and out1r outputs, using hpcom as the return path. the hpcom feature must be enabled via the out1_fb register field and the hpcom connection must be ac coupled to the headphone output. a 4.7uf coupling capacitor is required between the noisy ground connection the hpcom pin. the control register fields for the out1l and out1r outputs are described in table 40. the available output configurations are shown in section 13.9.3. from right output mixer -1 out1r_vol r105 [7:2] from left output mixer out1l_vol r104 [7:2] -1 out1l out1r vmid out1l_mute r104 [14] out1r_mute r105 [14] hpcom out1_fb r76 [0] figure 44 headphone outputs out1l and out1r
wm8350 production data w pd, march 2010, rev 4.2 84 address bit label default description r104 (68h) out1l volume 14 out1l_mute 0 out1l mute: 0 = normal operation 1 = mute 13 out1l_zc 0 out1l volume zero cross enable 0 = change gain immediately 1 = change gain on zero cross only 8 out1_vu 0 out1l and out1r volumes do not update until a 1 is written to either out1_vu. 7:2 out1l_vol [5:0] 11_1001 out1l volume: 000000 = -57db ... 111001 = 0db ... 111111 = +6db r105 (69h) out1r volume 14 out1r_mute 0 out1r mute: 0 = normal operation 1 = mute 13 out1r_zc 0 out1r volume zero cross enable 0 = change gain immediately 1 = change gain on zero cross only 8 out1_vu 0 out1l and out1r volumes do not update until a 1 is written to either out1_vu. 7:2 out1r_vol [5:0] 11_1001 out1r volume: 000000 = -57db ... 111001 = 0db ... 111111 = +6db r76 (4ch) output control 0 out1_fb 0 enable headphone common mode ground feedback for out1 0 = disabled (hpcom unused) 1 = enabled (common mode feedback through hpcom) table 40 controlling out1l and out1r
production data wm8350 w pd, march 2010, rev 4.2 85 13.9.2 out2l and out2r out2l and out2r are designed as a stereo pair and can drive a headphone, a line load or a loudspeaker amplifier. each output has an analogue volume control pga with a gain range of -57db to +6db as shown in figure 45. common mode noise rejection is also possible on the out2l and out2r outputs, using hpcom as the return path. the hpcom feature must be enabled via the out2_fb register field and the hpcom connection must be ac coupled to the headphone output. a 4.7uf coupling capacitor is required between the noisy ground connection the hpcom pin. the control register fields for the out2l and out2r outputs are described in table 41. the available output configurations are shown in section 13.9.3. from right output mixer -1 out2r_vol r107 [7:2] from left output mixer out2l_vol r106 [7:2] -1 out2l out2r vmid out2l_mute r106 [14] out2r_mute r107 [14] hpcom out2_fb r76 [2] figure 45 headphone outputs out2l and out2r
wm8350 production data w pd, march 2010, rev 4.2 86 address bit label default description r106 (6ah) for out2l volume 14 out2l_mu te 0 out2l mute: 0 = normal operation 1 = mute 13 out2l_zc 0 out2l volume zero cross enable 0 = change gain immediately 1 = change gain on zero cross only 8 out2_vu 0 out2l and out2r volumes do not update until a 1 is written to either out2_vu register bits. 7:2 out2l_vo l [5:0] 11_1001 out2l volume: 000000 = -57db ... 111001 = 0db ... 111111 = +6db r107 (6bh) for out2r 14 out2r_m ute 0 out2r mute: 0 = normal operation 1 = mute 13 out2r_zc 0 out2r volume zero cross enable 0 = change gain immediately 1 = change gain on zero cross only 10 out2r_in v 0 enable out2r inverting amplifier 0 = disabled 1 = enabled 9 out2r_in v_mute 1 mute output of pga to inverting amplifier. 0 = pga output goes to inverting amplifier 1 = pga output goes to output driver 8 out2_vu 0 out2l and out2r volumes do not update until a 1 is written to either out2_vu register bits. 7:2 out2r_vo l [5:0] 11_1001 out2r volume: 000000 = -57db ... 111001 = 0db ... 111111 = +6db r76 (4ch) output control 2 out2_fb 0 enable headphone common mode ground feedback for out2 0 = disabled (hpcom unused) 1 = enabled (common mode feedback through hpcom) table 41 controlling out2l and out2r
production data wm8350 w pd, march 2010, rev 4.2 87 a beep signal on the in3r pin (see table 42) can be mixed into out2r independently of the right output mixer (i.e. without mixing the same beep signal into out1r). address bit label default description r111 (6fh) beep volume 15 in3r_to_o ut2r 0 beep mixer enable 0 = disabled 1 = enabled 7:5 in3r_out2r _vol [2:0] 000 beep mixer volume: 000 = -15db ? in +3db steps 111 = +6db table 42 controlling the ?beep? path (in3r to out2r) 13.9.3 headphone outputs external connections some example headphone output configurations are shown below. figure 46 ac-coupled headphone drive figure 47 dc-coupled (capless) mode headphone drive figure 48 ac-coupled headphone drive with common mode noise rejection
wm8350 production data w pd, march 2010, rev 4.2 88 notes: the above figures illustrate the headphone connections to outputs out1l and out1r. the equivalent configurations apply equally to out2l and out2r. the dc-coupled configuration illustrated in figure 47 shows out4 (muted) being used as the ground return connection. the same capability may alternatively be provided using out3. twin headphone output (out1l, out1r, out2l and out2r) is possible, using a shared ground return connection via any of out3, out4, hpcom or agnd. capless operation is not possible when using the hpcom feature. when dc blocking capacitors are used their capacitance and the load resistance together determine the lower cut-off frequency, f c . increasing the capacitance lowers f c , improving the bass response. smaller capacitance values will diminish the bass response. for a 16 load and a capacitance of 220 f, the following derivation of cut-off frequency applies: f c = 1 / 2 r l c 1 = 1 / (2 x 16 x 220 f) = 45 hz in the dc coupled configuration, the headphone ?ground? is connected to vmid. the out3 or out4 pins can be configured as dc output drivers by de-selecting all inputs to the out3 or out4 mixers. the dc voltage on vmid in this configuration is equal to the dc offset on the out1l and out2l pins therefore no dc blocking capacitors are required. this saves space and material cost in portable applications. it is recommended to only use the dc coupled configuration to drive headphones, and not to use this configuration to drive the line input of another device.
production data wm8350 w pd, march 2010, rev 4.2 89 13.9.4 out3 and out4 the additional analogue outputs out3 and out4 have independent mixers and can be used in a number of different ways: ? out3 and out4 as a stereo pair (out3 = left, out4 = right) to drive a headphone or line load ? out3 or out4 as pseudo-ground outputs for headphones connected directly (without dc blocking capacitors) to out1l/out1r or out2l/out2r ? out4 as a mono mix of left and right signals the out3 and out4 output stages are powered from hpvdd and hpgnd. if out4 is providing a mono mix, it is recommended to reduce the level of out4 by 6db to avoid clipping in the event of 2 full-scale signals being combined. this is implemented via the out4_att register field. when out4_att is asserted, then out4 = (l+r) / 2. figure 49 out 3 and out4 mixers
wm8350 production data w pd, march 2010, rev 4.2 90 out3 can provide a buffered midrail headphone pseudo-ground, or a left line output. it can also be a common mode input for out2l/out2r. out4 can provide a buffered midrail headphone pseudo- ground, a right line output, or a mono mix output. it can also be mixed into the input boost mixer for recording. address bit label default description r92 (5ch) out3 mixer 11 dacl_to_out3 0 left dac output to out3 0 = disabled 1 = enabled 8 mixinl_to_out3 0 left input mixer to out3 0 = disabled 1 = enabled 3 out4_to_out3 0 out4 mixer to out3 0 = disabled 1 = enabled 0 mixoutl_to_out 3 0 left output mixer to out3 0 = disabled 1 = enabled r92 (5ch) out3 mixer 15 out3_ena 0 out3 enable 0 = disabled 1 = enabled r9 (09h) power mgmt 2 4 note: out3_ena can be accessed through r92 or r9. reading from or writing to either register location has the same effect. table 43 controlling the out3 mixer address bit label default description r93 (5dh) out4 mixer 12 dacr_to_out4 0 right dac output to out4 0 = disabled 1 = enabled 11 dacl_to_out4 0 left dac output to out4 0 = disabled 1 = enabled 10 out4_att 0 reduce out4 output by 6db 0 = output at normal level 1 = output reduced by 6db 9 mixinr_to_out4 0 right input mixer to out4 0 = disabled 1 = enabled 2 out3_to_out4 0 out3 mixer to out4 this function is not supported 1 mixoutr_to out4 0 right output mixer to out4 0 = disabled 1 = enabled 0 mixoutl_to_out4 0 left output mixer to out4 0 = disabled 1 = enabled r93 (5dh) out4 mixer 15 out4_ena 0 out4 enable 0 = disabled 1 = enabled r9 (09h) power mgmt 2 5 note: out4_ena can be accessed through r93 or r9. reading from or writing to either register location has the same effect. table 44 controlling the out4 mixer
production data wm8350 w pd, march 2010, rev 4.2 91 13.10 digital audio interface the audio interface enables the wm8350 to exchange audio data with other system components. it is separate from the control interface and has four dedicated pins: ? adcdat: output pin for data coming from the audio adc ? dacdat: input pin for audio data going to the audio dac ? lrclk: data left/right alignment clock (also known as ?word clock?) ? bclk: bit clock, for synchronisation the lrclk and bclk pins are outputs when the wm8350 operates as a master device and are inputs when it is a slave device. in order to allow the adc and dac to run at different sampling rates, separate adclrclk and adcbclk signals are both available through gpio pins: gpio5 (adclrclk) and gpio6 or gpio8 (adcbclk). this feature also allows mixed master/slave operation between the adc and dac. 13.10.1 audio data formats the audio interface supports six different audio data formats: ? left justified ? right justified ? i 2 s ? dsp mode a ? dsp mode b ? tdm mode in all of these formats, the msb (most significant bit) of each data sample is transferred first and the lsb (least significant bit) last. address bit label default description r112 (70h) audio interface 15 aif_bclk_inv 0 bclk polarity 0 = normal 1 = inverted 13 aif_tri 0 sets output enables for lrclk and bclk and adcdat to inactive state 0 = normal 1 = forces pins to hi-z 12 aif_lrclk_in v 0 lrclk clock polarity 0 = normal 1 = inverted dsp mode ? mode a/b select 0 = msb is available on 2 nd bclk rising edge after lrclk rising edge (mode a) 1 = msb is available on 1 st bclk rising edge after lrclk rising edge (mode b) 11:10 aif_wl [1:0] 10 (24 bits) data word length 11 = 32 bits 10 = 24 bits 01 = 20 bits 00 = 16 bits note: when using the right-justified data format (aif_fmt=00), the maximum word length is 24 bits.
wm8350 production data w pd, march 2010, rev 4.2 92 address bit label default description 8:9 aif_fmt [1:0] 10 (i 2 s) data format 00 = right justified 01 = left justified 10 = i 2 s 11 = dsp / pcm mode note - see section 13.11 for the selection of 8-bit mode. r114 (72h) audio interface adc control 7 aifadc_pd 0 enables a pull down on adc data pin 0 = disabled 1 = enabled 6 aifadcl_src 0 selects left channel adc output. 0 = adc left channel 1 = adc right channel 5 aifadcr_src 1 selects right channel adc output. 0 = adc left channel 1 = adc right channel 4 aifadc_tdm_ chan 0 adcdat tdm channel select 0 = adcdat outputs data on slot 0 1 = adcdat outputs data on slot 1 3 aifadc_tdm 0 adc tdm enable 0 = normal adcdat operation 1 = tdm enabled on adcdat r115 (73h) audio interface dac control 7 aifdac_pd 0 enables a pull down on dac data pin 0 = disabled 1 = enabled 6 dacl_src 0 selects left channel dac input. 0 = dac left channel 1 = dac right channel 5 dacr_src 1 selects right channel dac input. 0 = dac left channel 1 = dac right channel 4 aifdac_tdm_ chan 0 dacdat tdm channel select 0 = dacdat outputs data on slot 0 1 = dacdat outputs data on slot 1 3 aifdac_tdm 0 dac tdm enable 0 = normal dacdat operation 1 = tdm enabled on dacdat table 45 selecting the audio data format in left justified mode, the msb is available on the first rising edge of bclk following an lrclk transition. the other bits up to the lsb are then transmitted in order. depending on word length, bclk frequency and sample rate, there may be unused bclk cycles before each lrclk transition. n n-1 n-2 3 2 1 n n-1 n-2 3 2 1 left channel right channel msb lsb input word length (wl) 1/fs lrclk bclk dacdat/ adcdat figure 50 left justified audio interface (assuming n-bit word length)
production data wm8350 w pd, march 2010, rev 4.2 93 in right justified mode, the lsb is available on the last rising edge of bclk before a lrclk transition. all other bits are transmitted before (msb first). depending on word length, bclk frequency and sample rate, there may be unused bclk cycles after each lrclk transition. figure 51 right justified audio interface (assuming n-bit word length) in i2s mode, the msb is available on the second rising edge of bclk following a lrclk transition. the other bits up to the lsb are then transmitted in order. depending on word length, bclk frequency and sample rate, there may be unused bclk cycles between the lsb of one sample and the msb of the next. figure 52 i2s audio interface (assuming n-bit word length) in dsp/pcm mode, the left channel msb is available on either the 1st (mode b) or 2nd (mode a) rising edge of bclk (selectable by aif_lrclk_inv) following a rising edge of lrclk. right channel data immediately follows left channel data. depending on word length, bclk frequency and sample rate, there may be unused bclk cycles betw een the lsb of the right channel data and the next sample. figure 53 dsp/pcm mode audio interface (mode a, aif_lrclk_inv=0)
wm8350 production data w pd, march 2010, rev 4.2 94 figure 54 dsp/pcm mode audio interface (mode b, aif_lrclk_inv=1) 13.10.2 audio interface tdm mode the digital audio interface on wm8350 has the facility of tri-stating the adcdat pin to allow multiple data sources to operate on the same bus. time division multiplexing (tdm) is also supported, allowing audio output data to be transferred simultaneously from two different sources. tdm mode is enabled for the adc and dac by register bits aifadc_tdm and aifdac_tdm respectively. tdm slot selection for the wm8350 is set for the adc and dac by register bits aifadc_tdm_chan and aifdac_tdm_chan respectively, as defined in table 45. when not actively transmitting data, the adcdat pin will be tristated in tdm mode, to allow other devices to transmit data. 13.10.3 tdm data formats all selectable data formats support tdm. the allocation of time slots is controlled by register bits aifadc_tdm_chan and aifdac_tdm_chan. two possible slots (slot0 and slot1) are available for the adc and for the dac. timing signals for the various interface formats in tdm mode are shown below for the adc. similar slot allocation will exist for the dac. left justified mode: slot0 and slot1 are defined as shown below. the number of bclk cycles from the start of slot0 to the start of slot1 is determined by the selected word length of the interface of the wm8350. figure 55 left justified mode with tdm right justified mode: slot0 and slot1 are defined as shown below. the number of bclk cycles from the end of slot1 to the end of slot0 is determined by the selected word length of the interface of the wm8350.
production data wm8350 w pd, march 2010, rev 4.2 95 figure 56 right justified mode with tdm i2s mode: slot0 and slot1 are defined as shown below. the number of bclk cycles from the start of slot0 to the start of slot1 is determined by the selected word length of the interface of the wm8350. figure 57 i2s mode with tdm dsp/pcm mode a, master mode: slot0 and slot1 are defined as shown below. the number of bclk cycles from the start of slot0 (left) to the start of slot1 (left) is determined by the selected word length of the interface of the wm8350. figure 58 dsp/pcm mode a, master mode with tdm dsp/pcm mode b, master mode: slot0 and slot1 are defined as shown below. the number of bclk cycles from the start of slot0 (left) to the start of slot1 (left) is determined by the selected word length of the interface of the wm8350.
wm8350 production data w pd, march 2010, rev 4.2 96 figure 59 dsp/pcm mode b, master mode, with tdm dsp/pcm mode a, slave mode: slot0 and slot1 are defined as shown below. the number of bclk cycles from the start of slot0 (left) to the start of slot1 (left) is determined by the selected word length of the interface of the wm8350. figure 60 dsp/pcm mode a, slave mode with tdm dsp/pcm mode b, slave mode: slot0 and slot1 are defined as shown below. the number of bclk cycles from the start of slot0 (left) to the start of slot1 (left) is determined by the selected word length of the interface of the wm8350. figure 61 dsp/pcm mode b, slave mode, with tdm 13.10.4 loopback when the loopback feature is enabled, the audio adc?s digital output data is looped back to the audio dac and converted back into an analogue signal. this is often useful for test and evaluation purposes. address bit label default description r113 (71h) adc control 0 loopback 0 digital loopback function 0 = no loopback. 1 = loopback enabled, adc data output is fed directly into dac data input. table 46 enabling loopback
production data wm8350 w pd, march 2010, rev 4.2 97 13.11 companding the wm8350 supports a-law and -law companding on both transmit (adc) and receive (dac) sides. companding can be enabled on the dac or adc audio interfaces by writing the appropriate value to the dac_comp or adc_comp register bits respectively. register address bit label default description r113 (71h) companding control 4 adc_compm ode 0 adc companding mode select: 0 = -law 1 = a-law (note: setting adc_compmode=1 selects 8-bit mode when dac_comp=0 and adc_comp=0) 5 adc_comp 0 adc companding enable 0 = disabled 1 = enabled 6 dac_compm ode 0 dac companding mode select: 0 = -law 1 = a-law (note: setting dac_compmode=1 selects 8-bit mode when dac_comp=0 and adc_comp=0) 7 dac_comp 0 dac companding enable 0 = disabled 1 = enabled table 49 companding control companding involves using a piecewise linear approximation of the following equations (as set out by itu-t g.711 standard) for data compression: -law (where =255 for the u.s. and japan): f(x) = ln( 1 + |x|) / ln( 1 + ) -1 x 1 law (where a=87.6 for europe): f(x) = a|x| / ( 1 + lna) } for x 1/a f(x) = ( 1 + lna|x|) / (1 + lna) } for 1/a x 1 the companded data is also inverted as recommended by the g.711 standard (all 8 bits are inverted for -law, all even data bits are inverted for a-law). the data will be transmitted as the first 8 msbs of data. companding converts 13 bits ( -law) or 12 bits (a-law) to 8 bits using non-linear quantization. this provides greater precision for low amplitude signals than for high amplitude signals, resulting in a greater usable dynamic range than 8 bit linear quantization. the companded signal is an 8-bit word comprising sign (1 bit), exponent (3 bits) and mantissa (4-bits). 8-bit mode is selected whenever dac_comp=1 or adc_comp=1. the use of 8-bit data allows samples to be passed using as few as 8 bclk cycles per lrclk frame. when using dsp mode b, 8-bit data words may be transferred consecutively every 8 bclk cycles. 8-bit mode (without companding) may be enabled by setting dac_compmode=1 or adc_compmode=1 when dac_comp=0 and adc_comp=0. bit7 bit[6:4] bit[3:0] sig n exponent mantissa table 50 8-bit companded word composition
wm8350 production data w pd, march 2010, rev 4.2 98 u-law companding 0 20 40 60 80 100 120 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 normalised input companded output 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 normalised output figure 39 -law companding a-law companding 0 20 40 60 80 100 120 0 0.2 0.4 0.6 0.8 1 normalised input companded output 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 normalised output figure 40 a-law companding
production data wm8350 w pd, march 2010, rev 4.2 99 13.12 additional codec functions 13.12.1 headphone jack detect the in2l and in2r pins can be selected as headphone jack detect inputs, to enable automatic control of the analogue outputs when a headphone is plugged into a jack socket. jack detection on the in2l or in2r pins is enabled by register bits jdl_ena or jdr_ena respectively. when jack detection is enabled, the associated second level interrupts codec_jck_det_l_eint and codec_jck_det_r_eint indicate the status of the jack socket. see section 13.12.7 for further details. the headphone jack detect function requires the internal slow clock to be enabled - see section 12.3.6. register address bit label default description r77 (4dh) jack detect 15 jdl_ena 0 jack detect enable for inputs connected to in2l 0 = disabled 1 = enabled 14 jdr_ena 0 jack detect enable for input connected to in2r 0 = disabled 1 = enabled table 47 h eadphone jack detect
wm8350 production data w pd, march 2010, rev 4.2 100 13.12.2 microphone detection the wm8350 can detect when a microphone has been plugged in, and/or when the microphone is short-circuited. it detects these events by comparing the current drawn from the micbias pin against two thresholds. the thresholds for plug-in detection and short-circuit detection are programmable. a micbias current above the mcdthr threshold level is used to indicate that a microphone is plugged in, and is associated with the codec_micd_eint interrupt. if the bias current exceeds the mcdscthr limit, this indicates a microphone short-circuit condition, and the wm8350 raises a codec_micscd_eint interrupt. see section 13.12.7 for further details. note that the micbias current thresholds are subject to a wide tolerance - up to +/-50% of the specified value. microphone detection requires the internal slow clock to be enabled - see section 12.3.6. address bit label default description r8 (08h) power mgmt 1 8 mic_det_ena 0 enable mic detect: 0 = disabled 1 = enabled r74 (4ah) mic bias control 7 mic_det_ena 0 4:2 mcdthr [2:0] 000 threshold for bias current detection 000 = 160 a 001 = 330 a 010 = 500 a 011 = 680 a 100 = 850 a 101 = 1000 a 110 = 1200 a 111 = 1400 a these threshold currents scale proportionally with avdd. the values given are for avdd=3.3v. 1:0 mcdscthr [1:0] 00 threshold for microphone short-circuit detection 00 = 400 a 01 = 900 a 10 = 1350 a 11 = 1800 a these threshold currents scale proportionally with avdd. the values given are for avdd=3.3v. note: mic_det_ena can be accessed through r8 or through r74. reading from or writing to either register location has the same effect. table 48 controlling microphone bias current detection
production data wm8350 w pd, march 2010, rev 4.2 101 13.12.3 mid-rail reference (vmid) vmid provides a potential mid-way between avdd and gnd, used in many parts of the audio codec. it is generated from avdd using on-chip potential dividers. different resistor values can be selected for this purpose. a medium resistance should be used when the codec is active. a high resistance option provides a more power-efficient way to maintain the vmid voltage when the codec is in ?standby? (i.e. inactive but ready to start immediately, without needing to wait for the vmid capacitor to be charged). for startup and shutdown the vmid generator provides soft vmid ramping to reduce pops and clicks. the speed of this ramp is selectable using the anti-pop controls and can be tuned to the application. figure 62 generating the mid-rail reference address bit label default description r8 (08h) power management 1 2 vmid_en a 0 enables vmid resistor string 0 = disabled 1 = enabled 1:0 vmid [1:0] 00 (off) resistor selection for vmid potential divider 00 = off 01 = vmid comes from 300k ? r-string 10 = vmid comes from 50k ? r-string 11 = vmid comes from 5k ? r-string table 49 controlling the mid-rail reference
wm8350 production data w pd, march 2010, rev 4.2 102 13.12.4 anti-pop control address bit label default description r78 (4eh) anti pop control 9:8 anti_pop [1:0] 00 reduces pop when vmid is enabled by setting the speed of the s-ramp for vmid. 00 = no s-ramp (will pop) 01 = fastest s-curve 10 = medium s-curve 11 = slowest s-curve 7:6 dis_op_ln4 [1:0] 00 sets the discharge rate for out4 00 = discharge path off 01 = fastest discharge 10 = medium discharge 11 = slowest discharge 5:4 dis_op_ln3 [1:0] 00 sets the discharge rate for out3 00 = discharge path off 01 = fastest discharge 10 = medium discharge 11 = slowest discharge 3:2 dis_op_out2 [1:0] 00 sets the discharge rate for out2l and out2r 00 = discharge path off 01 = fastest discharge 10 = medium discharge 11 = slowest discharge 1:0 dis_op_out1 [1:0] 00 sets the discharge rate for out1l and out1r 00 = discharge path off 01 = fastest discharge 10 = medium discharge 11 = slowest discharge table 50 control registers for anti-pop
production data wm8350 w pd, march 2010, rev 4.2 103 13.12.5 unused analogue inputs/outputs whenever an analogue input/output is disabled, it remains connected to avdd/2 through a resistor. this helps to prevent pop noise when the output is re-enabled. the resistance between the voltage buffer and the output pins can be controlled using the vroi control bits. the default impedance is low, so that any capacitors on the outputs can charge up quickly at start-up. if high impedance is desired for disabled outputs, vroi can then be set to 1, increasing the resistance to about 30k . there are individual vroi bits for each output or output pair. this allows matching of the rise times of the outputs if they are driving different capacitors. using the small resistance with a capacitor for headphone outputs (typically 220uf) and the larger resistance with a line load capacitance (10uf for example); will allow both sets of outputs to power up in around the same time, around 200ms. register address bit label default description r8 (08h) power mgmt 1 13 vbuf_ena 0 forces on the tie-off amplifiers 0 = disabled 1 = enabled r76 (4ch) output control 8 out1_vroi 0 vref (avdd/2) to out1l/out1r resistance 0 = approx 500 1 = approx 30 k 9 out2_vroi 0 vref (avdd/2) to out2l/out2r resistance 0 = approx 500 1 = approx 30 k 10 out3_vroi 0 vref (avdd/2) to out3 resistance 0 = approx 500 1 = approx 30 k 11 out4_vroi 0 vref (avdd/2) to out4 resistance 0 = approx 500 1 = approx 30 k table 51 disabled outputs to vref resistance a dedicated buffer is available for tying off unused analogue i/o pins as shown below. this buffer can be enabled using the vbuf_ena register bit.
wm8350 production data w pd, march 2010, rev 4.2 104 avdd/2 - + avdd/2 used to tie off all unused outputs. out2l out2r out3 500 30k out3_vroi r76[10] 500 30k 500 30k out4 500 30k out4_vroi r76[11] out1l 500 30k out1_vroi r76[8] out1r 500 30k avdd/2 - + avdd/2 vbuf_ena r8[13] used to tie off all unused inputs. out1l_ena r10[0] out1r_ena r10[1] out2l_ena r10[2] out2r_ena r10[3] out2_vroi r76[9] out3_ena r9[4] out4_ena r9[5] vbuf_ena r8[13] figure 63 unused input/output pin tie-off buffers out1r/l_ena/ out2r/l_ena out3/4_ena vroi output configuration 0 0 500 ? tie-off to avdd/2 0 1 30k ? tie-off to avdd/2 1 x output enabled (dc level = avdd/2) 1 x output enabled (dc level = 1.5 x avdd/2) table 52 unused output pin tie-off options
production data wm8350 w pd, march 2010, rev 4.2 105 13.12.6 zero cross timeout a zero-cross timeout function is also provided so that if zero cross is enabled on the input or output pgas the gain will automatically update after a timeout period if a zero cross has not occurred. the zero-cross timeout function requires the internal slow clock to be enabled - see section 12.3.6. 13.12.7 interrupts and fault protection the codec has its own first-level interrupt, codec_int (see section 24). this comprises four second-level interrupts which indicate jack detect and microphone current conditions. these interrupts can be individually masked by setting the applicable mask bit(s) as described in table 53. address bit label description r31 (1fh) comparator interrupt status 11 codec_jck_det_l_eint left channel jack detection interrupt. (rising and falling edge triggered) note: this bit is cleared once read. 10 codec_jck_det_r_eint right channel jack detection interrupt. (rising and falling edge triggered) note: this bit is cleared once read. 9 codec_micscd_eint mic short-circuit detect interrupt. (rising and falling edge triggered) note: this bit is cleared once read. 8 codec_micd_eint mic detect interrupt. (rising and falling edge triggered) note: this bit is cleared once read. r39 (27h) comparator interrupt status mask 11:8 ?im_? + name of respective bit in r31 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. each bit in r39 enables or masks the corresponding bit in r31. the default value for these bits is 0 (unmasked). table 53 codec interrupts
wm8350 production data w pd, march 2010, rev 4.2 106 14 power management subsystem 14.1 general description the wm8350 provides 6 dc-dc converters and 4 ldo regulators which each deliver high efficiency across a wide range of line and load conditions. these power management components are designed to support application processors and associated peripherals. they are also suitable for providing power to the analogue and digital functions of the on-board codec and gpio features. the output voltage of each of the converters and regulators is programmable in software through control registers. the wm8350 has a number of operating states which are either selected by software control or are selected autonomously according to the available power supply conditions. a low power active ?hibernate? state is provided, with programmable characteristics. the ?backup? and ?zero? states are selected autonomously when the available supply voltages do not permit full operation of the wm8350. four configuration modes are provided, selected by hardware control. development mode gives complete control over the configuration and start-up behaviour of the wm8350. three different custom modes each have a defined set of configuration parameters, which determine the start-up timing and output voltage of each of the dc-dc converters and ldo regulators. the configuration of each of the gpio pins is also contained with the configuration modes definitions. 14.2 power management operating states the wm8350 autonomously controls the power-up and power-down sequencing for itself and for other connected devices. it also selects the most appropriate power source available at any given time (see section 17). the stable states of the wm8350 are: active - all wm8350 functions can be used. the wm8350 enters the active state after a valid start-up event (see section 14.3.1), provided that no fault condition occurred during start-up. hibernate - this is an alternative active state with programmable characteristics, allowing an optional low power system condition. the internally generated supply voltages can be individually enabled or disabled as desired. the wm8350 enters the hibernate state from active by setting the hibernate register bit or when commanded via a gpio pin configured as a hibernate alternate function. off - all dc-dc converters and regulators ldo2, ldo3 and ldo4 are disabled. ldo1 may remain active (see section 14.7.4). the vrtc regulator remains active and powers the always-on functions (such as crystal oscillator and rtc.) register settings are restored to default settings. trickle charging for the main battery is enabled by default. the wm8350 enters the off state from active if a shutdown event occurs (see section 14.3.3), or if the power source falls below the shutdown threshold (see section 18). the wm8350 enters the off state from backup if a power source greater than the uvlo threshold becomes available. backup - the crystal oscillator and rtc are enabled, powered from the backup power (vrtc) supply. all other functions are disabled. the wm8350 enters the backup state from off if the power source falls below the uvlo threshold (see section 18), and provided that backup power (vrtc) is available (i.e. line falls below the uvlo level but vrtc remains above the power-on reset threshold). zero - all functions are disabled and all data in registers is lost. the wm8350 goes into this state when no power source is available and vrtc falls below the power-on reset threshold. the active state can only be entered via the pre-active state. in development mode, the pre- active state is the state in which the wm8350 start-up parameters may be defined, prior to the start- up sequence being triggered. the active state is only entered on completion of the start-up sequence. the wm8350 operating states and valid transitions are illustrated in figure 64.
production data wm8350 w pd, march 2010, rev 4.2 107 figure 64 wm8350 operating state diagram 14.2.1 hibernate state selection the wm8350 moves from the active to the hibernate state when the hibernate register bit is set. it can also move to hibernate using the hibernate edge or the hibernate level function from the gpios. it returns to the active state when the hibernate level gpio function is reset and the hibernate bit is set to 0. it can also return to active via the hibernate edge function or when a wake-up event (see section 14.3.1) occurs. if a fault condition occurs in the hibernate state, the wm8350 moves to the off state. address bit label default description r5 (05h) system hibernate 15 hibernate 0 determines what state the chip should operate in. 0 = active state 1 = hibernate state the register bit defaults to 0 when a reset happens table 54 invoking hibernate state the behaviour of the wm8350 in the hibernate state is programmable in terms of supply voltage generation, interrupts and resets. fast battery charging is disabled in the hibernate state, but trickle charging is possible.
wm8350 production data w pd, march 2010, rev 4.2 108 14.3 power sequencing and control 14.3.1 startup the wm8350 moves from off or hibernate states to the active state when a startup event occurs. startup events include: ? a trigger signal on the on pin lasting more than 40ms. the active polarity of this input is set by the register field on_pol. ? a trigger signal on a gpio pin configured as /wakeup lasting more than 40ms. the active polarity of this input is set by gpn_cfg for the applicable gpio pin (see section 20). ? a trigger signal on a gpio pin configured as pwr_on input lasting more than 40ms. the active polarity of this input is set by gpn_cfg for the applicable gpio pin (see section 20). ? programmed alarm from rtc module, if enabled (see section 22). ? wall adaptor plug-in (wall_fb rises above 4.0v). ? usb plug-in (usb pin rises above 4.0v). the start-up events are only valid provided also that the available supply voltage, sensed on the line pin, is greater than the start-up threshold set by pccmp_on_thr, as defined in section 18. start-up by wall adaptor plug-in occurs when the wall adapter feedback pin detects a voltage greater than 4.0v. see section 17.1 for a description of the wall_fb pin function. start-up by usb plug-in occurs when the usb voltage rises above the line voltage. if usb suspend mode is invoked, then usb plug-in starts the wm8350 on battery power, if available. when usb suspend mode is not invoked, this start-up event will lead to starting the wm8350 on usb power, and usb 100ma trickle charging of the battery is enabled. note that applying a battery voltage is not a start-up event, i.e. connecting a battery pack does not start the wm8350. the wm8350 starts up on battery power if a startup event occurs and battery power is the only power source available, provided the battery voltage is above the startup threshold. (the start-up threshold is set by pccmp_on_thr, as defined in section 18. in the active state, the host processor can read the interrupt status fields in register r31 in order to determine what action initiated the start-up. these fields indicate, for example, if the start-up was due to a reset caused by an error condition, or if the start-up was caused by a pwr_on input, or if the start-up was caused by an rtc alarm. the first-level interrupt wkup_int is triggered whenever any of the second-level interrupt events described in table 55 is set. see section 24 for further details of interrupt.
production data wm8350 w pd, march 2010, rev 4.2 109 address bit label description r31 (1fh) comparator interrupt status 6 wkup_off_state_eint indicates that the chip started from the off state. (rising edge triggered) note: this bit is cleared once read. 5 wkup_hib_state_eint indicated the chip started up from the hibernate state. (rising edge triggered) note: this bit is cleared once read. 4 wkup_conv_fault_eint indicates the wakeup was caused by a converter fault leading to the chip being reset. (rising edge triggered) note: this bit is cleared once read. 3 wkup_wdog_rst_eint indicates the wakeup was caused by a watchdog heartbeat being missed, and hence the chip being reset. (rising edge triggered) note: this bit is cleared once read. 2 wkup_gp_pwr_on_eint pwr_on (alternate gpio function) pin has been pressed for longer than specified time. (rising edge triggered) note: this bit is cleared once read. 1 wkup_onkey_eint on key has been pressed for longer than specified time. (rising edge triggered) note: this bit is cleared once read. 0 wkup_gp_wakeup_eint wakeup (alternate gpio function) pin has been pressed for longer than specified time. (rising edge triggered) note: this bit is cleared once read. r39 (27h) comparator interrupt status mask 6:0 ?im_? + name of respective bit in r31 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. each bit in r39 enables or masks the corresponding bit in r31. the default value for these bits is 0 (unmasked). table 55 wake-up interrupts 14.3.2 power-up sequencing the wm8350 power supply blocks can be commanded to start up according to a defined sequence when the wm8350 is commanded into the active state. this sequence comprises fourteen timeslots, where the enabling of each dc-dc converter, ldo voltage regulator and the current limit switch is associated with one timeslot. in order to minimise supply in-rush current at power-up time, the start-up of these power supply blocks should be staggered in time by the use of this feature. the wm8350 proceeds from one time slot to the next after a delay of approximately 1.28ms, provided that all power supply blocks started up in the current time slot (if any) have reached 90% of their programmed output voltage. see section 14.3.4 for details of the wm8350 behaviour if any power supply block fails to achieve 90% of its programmed output voltage.
wm8350 production data w pd, march 2010, rev 4.2 110 14.3.3 shutdown the wm8350 goes from active or hibernate to the off state when a shutdown event occurs. shutdown events include: ? software shutdown (setting chip_on = 0) ? a trigger signal on a gpio pin configured as pwr_off lasting more than 5ms. the active polarity of this input is set by gpn_cfg for the applicable gpio pin (see section 20). ? a trigger signal on the on pin lasting more than 10 seconds. the active polarity of this input is set by the register field on_pol. if required, the de-bounce time can be set to 5 seconds using the on_deb_t register bit. ? watchdog time-out (see section 23) after 7 previous faults. ? fault conditions programmed to trigger a shutdown (see section 18). ? thermal shutdown (see section 25) as part of the start-up sequence, the chip_on bit is set to 1. the software shutdown is commanded by writing 0 to the chip_on register field as described in table 56. address bit label default description r3 (03h) system control 1 15 chip_on 0 indicates whether the system is on or off. writing 0 to this bit powers down the whole chip. registers which are affected by state machine reset will get reset. once the system is turned off it can be restarted by any of the valid on event. 3 on_deb_t 0 on pin shutdown function debounce time 0 = 10s 1 = 5s 1 on_pol 1 on pin polarity: 0 = active high (on) 1 = active low (/on) table 56 software shutdown as part of the shutdown sequence, the wm8350 asserts the /rst and /memrst reset signals, resets its internal control registers, disables most of its functions, resets the chip_on bit to 0 and moves to the off state. (note that /memrst is an optional output available on gpio pins only.)
production data wm8350 w pd, march 2010, rev 4.2 111 14.3.4 power cycling if an undervoltage fault or a limit switch overcurrent fault is detected (eg. during start-up, or when exiting the hibernate state), the wm8350 will respond according to various configurable options. the limit switch and each of the dc converters and ldo regulators may be programmed to shutdown the system in the event of a fault condition. in these events (where a system shutdown is selected), the wm8350 will either shut down or will attempt to re-start, depending on the state of the powercycle register bit. if powercycle = 0, then a fault condition will result in the shutdown of the wm8350, reverting to the off state. if powercycle = 1, then the wm8350 will make a maximum of 8 attempts to re- start. each attempt will be scheduled at 200ms intervals. after 8 consecutive failed attempts, the wm8350 reverts to the off state and resets the power cycling counter. any subsequent start-up event again has a maximum of 8 attempts to start up (provided that powercycle = 1). address bit label default description r3 (03h) system control 13 powercycl e 0 action to take on a fault (if fault response is set to shutdown system): 0 = shut down 1 = shutdown everything then go through startup sequence. ie. reboot the system. table 57 controlling power cycling 14.3.5 register reset the control registers of the wm8350 are reset when it goes into the off state. the reg_reset_hib_mode control bit provides an option to also reset the internal registers when exiting the hibernate state. in development mode, the register reset in off can be disabled using the reconfig_at_on register field. see section 14.4 for a definition of this field. address bit label default description r5 (05h) system hibernate 5 reg_rese t_hib_mod e 0 action of the internal register reset signal when going from hibernate to active. 0 = do not do a register reset when leaving the hibernate state. 1 = do a register reset when leaving the hibernate state table 58 register reset control
wm8350 production data w pd, march 2010, rev 4.2 112 14.3.6 reset signals the wm8350 provides an active-low reset output signal to the host processor on the open-drain /rst pin. the /rst pin is asserted low in the off state. the status of the /rst pin in hibernate state is configurable using the rst_hib_mode bit. in start-up, after all enabled power supplies reach 90% of their programmed output voltage, the /rst output is held low for a programmable duration set by rstb_to. the /rst pin is then set high. the /rst output is set low during the shutdown sequence. an additional gpio output, /rst can be generated, with the same functionality as the /rst pin. a gpio pin must be configured as /rst in order to output this signal (see section 20). the wm8350 can also generate a separate /memrst signal for other subsystems such as external memory. this allows resetting some subsystems in the hibernate state, while not resetting others. the /memrst feature is provided via a gpio pin (see section 20). note that /memrst is not a valid control signal during the start-up as the gpio pins are not configured at this time. the mem_valid field provides an indication of whether the contents of the external memory (under control of /memrst) are valid. the /rst and /memrst signals can also be asserted under control of a manual reset input. a gpio pin (see section 20) must be configured as /mr to enable this feature. note that the /mr input has no effect on the wm8350 circuits other than asserting /rst and /memrst. address bit label default description r3 (03h) system control 1 11:10 rstb_to [1:0] 11 time that the /rst pin and /memrst output is held low after the chip reaches the active state. 00 = 15ms 01 = 30ms 10 = 60ms 11 = 120ms 5 mem_valid 0 indicates that the contents of external memory are still valid. this bit is cleared on startup and whenever /memrst is asserted from the main state machine. the system software should set this bit once the external memory has been set up. controlled in hibernate mode by memrst_hib_mode 0 = external memory is not valid and needs restoring. 1 = external memory is valid. r5 (05h) system hibernate 4 rst_hib_m ode 0 /rst pin state in hibernate mode: 0 = asserted (low) 1 = not asserted (high) 2 memrst_h ib_mode 0 /memrst (alternative gpio function) pin state in hibernate mode 0 = asserted (low) 1 = not asserted (high) table 59 controlling reset signals
production data wm8350 w pd, march 2010, rev 4.2 113 the wm8350 can be commanded to assert the /rst and /memrst signals by writing a logic ?1? to the sys_rst register bit. in this case, the /rst and /memrst outputs are asserted low for the duration specified by rstb_to. care must be taken if writing to this bit in 2-wire (i2c) control interface mode. the wm8350 will act upon the register write operation as soon as it has received the address and data fields; this may happen before the i2c acknowledge has been clocked by the host processor. if the /rst signal causes the processor to reset before it has clocked the i2c acknowledge, then the wm8350 will continue to assert the acknowledge signal (ie. pull the sda pin low) after the processor has completed its reset. on some processors, it may be necessary to toggle the sclk pin in order to clear the acknowledge signal and resume i2c communications. address bit label default description r3 (03h) system control 1 14 sys_rst 0 allows the processors to reboot itself 0 = do nothing 1 = perform a processor reset by asserting the /rst and /memrst (gpio) pins for the programmed duration protected by security key. table 60 software reset command
wm8350 production data w pd, march 2010, rev 4.2 114 14.4 development mode the wm8350 can start in different modes depending on the state of the conf1 and conf0 pins. development mode is selected by tying conf1 and conf0 to logic 0. development mode gives complete control over the configuration and startup behaviour of the wm8350 and allows overriding the default values of selected registers (listed in table 63). it enables configuration of the wm8350 before startup. this is especially useful for evaluation and debugging. in low-volume production, an external ?genie? (low-cost, small-size microcontroller) may be used to configure the wm8350 in development mode. the ?genie? is used to write the required register values to generate the desired supplies and to configure the gpio pins as required. these register write operations can be achieved via a secondary control interface, which is provided by redirecting the control interface to two gpio pins as described below. the configuration mode pins conf1 and conf0 should be tied to fixed logic levels. the start-up sequence that they control is initiated on every transition from the off to the active state. 14.4.1 control interface redirection in development mode, the 2-wire control interface is initially redirected from the primary control interface (dedicated sdata and sclk pins, which require a dbvdd supply) to the secondary control interface (the gpio10 and gpio11 pins, which can run on an externally generated supply provided through the line pin). when using gpio pins for the control interface, gpio11 provides the sdata functionality, and gpio10 provides the sclk functionality. use of the secondary interface makes it possible to configure the wm8350 before the dbvdd supply voltage becomes available (e.g. in the off and pre-active states). the control interface can be switched back to the primary interface at any time by writing to the use_dev_pins bit. in a typical application, the primary control interface would be selected after the wm8350 is fully configured. the device address for the secondary control interface is 0x34h, and cannot be changed. in development mode only, the primary interface address can be selected by writing to the dev_addr bits through the secondary interface. note that this functionality is only available in development mode. address bit label default description r6 (06h) interface control 15 use_dev_p ins 1 selects which pins to use for the 2-wire control: 0 = use 2-wire i/f pins as 2-wire interface 1 = use gpio 10 and 11 as 2-wire interface, e.g. to download settings from pic. only applies when config pins[1:0] = 00. 14:13 dev_addr [1:0] 00 selects device address (only valid when conf_sts = 00) 00 = 0x34 01 = 0x36 10 = 0x3c 11 = 0x3e note: in custom modes (conf[1:0] 00), the secondary control interface is never used and the control bits described here have no effect. table 61 control interface switching in development mode
production data wm8350 w pd, march 2010, rev 4.2 115 14.4.2 starting up in development mode in development mode, the gpio1 pin is configured as a do_conf output (see section 20), which is asserted high to indicate that the wm8350 is about to start up. this may be used to trigger the ?genie? to configure the wm8350 via the secondary control interface. figure 65 configuration timing in development mode on completion of the register configuration, the power-up sequence is initiated by writing a logic 1 to the config_done bit. if the config_done bit is not set before the maximum set-up time has elapsed (see figure 65), then the wm8350 will revert to the off state. an alternative implementation is to start up the wm8350 by setting config_done to ?1? without first programming the converter/ldo settings. by this method, the rising edge of the /rst signal may be used to trigger the wm8350 configuration process after the device has entered the active state. in this case, the dc-dc converters and ldos turn on immediately when they are enabled (time slots are no longer relevant because the wm8350 is already in the active state). to reduce in-rush current, any configuration sequence triggered by /rst should therefore include supply staggering in software (i.e. time delays between powering up individual supply domains). note that, whether using do_conf or /rst to trigger configuration, the on-chip watchdog imposes a time-out for configuration; if the wm8350 watchdog is not serviced, it restarts the system. this can be prevented, if necessary, by disabling the watchdog. by default, the do_conf output will be set low when the wm8350 enters the off state and set high on every transition from off to active, re-triggering the external ?genie?. also, by default, the internal control registers will be reset when the wm8350 enters the off state. this behaviour can be changed using the reconfig_at_on register bit. if reconfig_at_on is set to 0, then the control registers will not be reset when going into the off state, and the do_conf output will remain set high after the first powering up of the chip, regardless of subsequent state transitions. de-selection of reconfig_at_on should be used with caution, as this can potentially lead to system failures in some applications. if reconfig_at_on is set to 0, and an off event occurs, then it is possible that control registers will not be set to the intended start-up values when the wm8350 subsequently returns to the on state. the impact of this will depend upon the hardware and software of the particular target application, and is not necessarily a risk in every instance. please contact wolfson applications support if further guidance is required on this topic. note that reconfig_at_on should never be set to 0 in custom modes 01, 10 or 11. setting this bit to 0 may result in erroneous behaviour and deviation from the custom configuration settings. under default settings, the control registers are always reset in the off state. the register fields do_conf and reconfig_at_on are defined in table 62.
wm8350 production data w pd, march 2010, rev 4.2 116 address bit label default description r6 (06h) interface control 12 config_d one 0 tells the system that the pic micro has completed its programming. 0 = programming still to be done 1 = programming complete only applies when config pins[1:0] = 00. 11 reconfig _at_on 1 selects whether to reset the registers in the off state and whether to reload the device configuration from the pic when an on event occurs. 0 = do not reset registers in the off state. do not load configuration data when an on event occurs. 1 = reset registers in the off state. load configuration from the pic when an on event occurs. note that, in development mode, the device configuration from the pic is always loaded when first powering up the chip. this bit must always be set to default (1) in custom modes 01, 10 and 11. table 62 start-up control in development mode note: if the wm8350 enters the backup state as a result of an undervoltage condition (see section 18), then the control registers will be reset, but do_conf will remain high. when the supply voltage rises and device comes out of backup, the do_conf output will still be high. if the do_conf signal is used to trigger an external ?genie? device, then this may not work, as the do_conf has remained high through the backup state transition, and the wm8350 device will become locked in the pre-active state when an on event occurs. this problem may be avoided by ensuring that the ?genie? monitors the line voltage in order to recognise the undervoltage condition, and that it verifies the i2c acknowledge signal on the secondary interface (gpio10 and gpio11) to determine whether it can execute its programming function.
production data wm8350 w pd, march 2010, rev 4.2 117 14.4.3 configuring the wm8350 in development mode the wm8350 can be configured in development mode by writing to control bits that determine its startup behaviour. the locations of these register bits are shown in table 63 below. a typical configuration sequence would include writes to some or all of the registers listed. if none of the highlighted bits in any given register needs to be changed from its default, then no write to that register is recommended. the configuration bits include: ? duration control bits for the /rst reset signal (rstb_to) ? gpio pull-up / pull-down settings and debounce times (gp n _pd, gp n _pu, gp n _db and gp_dbtime) ? alternate function and input/output selection for gpio pins (gp n _fn, gp n _dir and gp n _cfg) ? voltage settings for dc-dc converters and ldo regulators (dc n _vsel and ldo n _vsel) ? time slots for automatic start of all dc-dc converters, all ldo regulators and the current limit switch during startup (dc n _enslot, ldo n _enslot and ls_enslot). note that supplies can be programmed to not start up automatically by setting the respective _enslot bits to 0000. typically, the final step in the sequence is a write to register r6, in order to: ? select the wm8350 device address on the primary control interface, using the dev_addr bits. ? allow the wm8350 to proceed to startup. this is achieved by setting the config_done bit (r6 bit 12) to 1. ? switch the control interface back to the primary interface (if desired), so that a host processor can communicate with the wm8350. this is achieved by setting use_dev_pins (r6 bit 15) to 0.
wm8350 production data w pd, march 2010, rev 4.2 118 register 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 select /rst duration r3 (03h) rstb_to unlock protected registers r219 (dbh) 0013h alternate function and input/output selection for gpio pins r140 (8ch) gp3_fn gp2_fn gp1_fn gp0_fn r141 (8dh) gp7_fn gp6_fn gp5_fn gp4_fn r142 (8eh) gp11_fn gp10_fn gp9_fn gp8_fn r143 (8fh) gp12_fn r128 (80h) gpn_db (n = 0 to 12) r129 (81h) gpn_pu (n = 0 to 12) r130 (82h) gpn_pd (n = 0 to 12) r134 (86h) gpn_dir (n = 0 to 12) r135 (87h) gpn_cfg (n = 0 to 12) disable battery charger (only if battery type is not compatible with wm8350 charger) r168 (a8h) 0 re-lock protected registers r219 (dbh) ffffh configure supply generation r180 (b4h) dc1_vsel[6:0] r181(b5h) dc1_enslot[3:0] r183 (b7h) dc2_enslot[3:0] r186 (bah) dc3_vsel[6:0] r187 (bbh) dc3_enslot 3:0] r189 (bdh) dc4_vsel[6:0] r190 (beh) dc4_enslot[3:0] r193 (c1h) dc5_enslot[3:0] r195 (c3h) dc6_vsel[6:0] r196 (c4h) dc6_enslot[3:0] r199 (c7h) ls_enslot[3:0] r200 (c8h) ldo1_vsel[4:0] r201 (c9h) ldo1_enslot[3:0] r203 (cah) ldo2_vsel[4:0] r204 (cbh) ldo2_enslot[3:0] r206 (ceh) ldo3_vsel[4:0] r207 (cfh) ldo3_enslot[3:0] r209 (d1h) ldo4_vsel[4:0] r210 (d2h) ldo4_enslot[3:0] proceed to startup and hand over to host processor r6 (06h) 0 dev_add r 1 table 63 suggested sequence of register writes for wm8350 configuration in development mode note that configuration only includes registers that are required for starting up correctly. all other register settings should be loaded after the wm8350 has started up. most of these control fields are described here within section 14. see section 11.6 for details of register locking. see section 20 for details of the gpio configuration fields. see section 17.7 for details of the battery charger configuration. when using the /rst signal to trigger configuration, writing to the _enslot and rstb_to fields can be omitted (the reset and power-up sequence has already taken place, so the write would have no effect). however, additional writes to r13 or r176 should be added to enable the dc-dc converters and ldo regulators one by one.
production data wm8350 w pd, march 2010, rev 4.2 119 14.5 custom modes the wm8350 provides three custom start-up modes. these are selected by setting the conf1 and conf0 pins = 01, 10 or 11. the custom mode start-up sequences define the following parameters: ? polarity of the on pin (active low or high) ? configuration of the usb power source ? configuration of the watchdog timer mode ? configuration of the control interface mode ? configuration of the 32khz oscillator (enabled or disabled) ? configuration of the real-time-clock (enabled or disabled) ? configuration of ldo1 ? configuration of the voltage settings and start-up timeslots for dc-dc and ldo supplies ? configuration of gpio pins in development mode, the reconfig_at_on register bit (see section 14.4.2) may be used to control the device configuration behaviour. in custom modes 01, 10 or 11, the default setting (reconfig_at_on = 1) should always be used. setting this bit to 0 may result in erroneous behaviour and deviation from the custom configuration settings. the custom modes do not allow configuring the wm8350 in the off state. as a result, evaluation and debugging in custom modes is limited. 14.5.1 configuration mode 01 in configuration mode 01, the following general default settings apply: parameter register setting description on polarity on_pol = 1 on pin is active low usb power source usb_slv_500ma = 1 selects 500ma limit in usb slave watchdog timer wdog_mode [1:0] = 00 watchdog is disabled control interface spi_3wire = 0 spi_4wire = 0 spi_cfg = 0 control interface is 2-wire mode 32khz oscillator osc32k_ena = 1 32khz oscillator is enabled real time clock rtc_tick_ena = 1 rtc_clksrc = 0 real time clock is enabled ldo1 ldo1_pin_mode = 0 ldo1_pin_en = 0 ldo1 controlled as normal via register bits the default voltages and the power-up sequence for all dc-dcs and ldos in configuration mode 01 are shown below in table 64 and figure 66. the time delay between each time slot is approximately 1.28ms. note that the limit switch is not enabled automatically in configuration mode 01; as a result, the limit switch remains open when the wm8350 enters the active state.
wm8350 production data w pd, march 2010, rev 4.2 120 supply register setting description dcdc1 dc1_enslot [3:0] = 0100 dc1_vsel [6:0] = 000_0110 fourth timeslot 1.0v dcdc2 dc2_enslot [3:0] = 0000 disabled dcdc3 dc3_enslot [3:0] = 0001 dc3_vsel [6:0] = 010_0110 first timeslot 1.8v dcdc4 dc4_enslot [3:0] = 0001 dc4_vsel [6:0] = 1 01_0110 first timeslot 3.0v dcdc5 dc5_enslot [3:0] = 0000 disabled dcdc6 dc6_enslot [3:0] = 0100 dc6_vsel [6:0] = 00 0_1010 fourth timeslot 1.1v ldo1 ldo1_enslot [3:0] = 0011 ldo1_vsel [4:0] = 0_0010 third timeslot 1.0v ldo2 ldo2_enslot [3:0] = 0010 ldo2_vsel [4:0] = 1_1111 second timeslot 3.3v ldo3 ldo3_enslot [3:0] = 0001 ldo3_vsel [4:0] = 1_1100 first timeslot 3.0v ldo4 ldo4_enslot [3:0] = 0010 ldo4_vsel [4:0] = 0_0100 second timeslot 1.1v table 64 default supply voltages / power-up sequence for configuration mode 01 start up dcdc3 dcdc2 dcdc1 dcdc4 dcdc5 dcdc6 ldo1 ldo2 ldo3 ldo4 disabled at start-up time slot1 time slot2 time slot3 time slot4 time slot5 time slot6 disabled at start-up the time delay between each time slot is approximately 1.28ms. figure 66 power-up sequence - configuration mode 01
production data wm8350 w pd, march 2010, rev 4.2 121 the default gpio settings for configuration mode 01 are shown below in table 65. gpio pin power domain default gpio function default direction default pull-up / pull-down default de-bounce gpio0 vrtc gp0_fn [3:0] = 0000 gpio gp0_dir = 1 gp0_cfg =1 input, active high gp0_pd=0 gp0_pu=0 normal mode gp0_db = 1 debounce enabled gpio1 vrtc gp1_fn [3:0] = 0000 gpio gp1_dir = 1 gp1_cfg =1 input, active high gp1_pd=0 gp1_pu=0 normal mode gp1_db = 1 debounce enabled gpio2 vrtc gp2_fn [3:0] = 0000 gpio gp2_dir = 1 gp2_cfg =1 input, active high gp2_pd=0 gp2_pu=0 normal mode gp2_db = 1 debounce enabled gpio3 vrtc gp3_fn [3:0] = 0000 gpio gp3_dir = 1 gp3_cfg =1 input, active high gp3_pd=0 gp3_pu=0 normal mode gp3_db = 1 debounce enabled gpio4 dbvdd gp4_fn [3:0] = 0000 gpio gp4_dir = 1 gp4_cfg =1 input, active high gp4_pd=0 gp4_pu=0 normal mode gp4_db = 1 debounce enabled gpio5 dbvdd gp5_fn [3:0] = 0001 l_pwr1 gp5_dir = 1 gp5_cfg =0 input, active low gp5_pd=0 gp5_pu=0 normal mode gp5_db = 1 debounce enabled gpio6 dbvdd gp6_fn [3:0] = 0001 l_pwr2 gp6_dir = 1 gp6_cfg =0 input, active low gp6_pd=0 gp6_pu=0 normal mode gp6_db = 1 debounce enabled gpio7 dbvdd gp7_fn [3:0] = 0001 l_pwr3 gp7_dir = 1 gp7_cfg =0 input, active low gp7_pd=0 gp7_pu=0 normal mode gp7_db = 1 debounce enabled gpio8 dbvdd gp8_fn [3:0] = 0011 /batt_fault gp8_dir = 0 gp8_cfg =0 output, cmos gp8_pd=0 gp8_pu=0 normal mode gp8_db = 1 debounce enabled gpio9 dbvdd gp9_fn [3:0] = 0001 /vcc_fault gp9_dir = 0 gp9_cfg =0 output, cmos gp9_pd=0 gp9_pu=0 normal mode gp9_db = 1 debounce enabled gpio10 line gp10_fn [3:0] = 0000 gpio gp10_dir = 1 gp10_cfg =1 input, active high gp10_pd=0 gp10_pu=0 normal mode gp10_db = 1 debounce enabled gpio11 line gp11_fn [3:0] = 0000 gpio gp11_dir = 1 gp11_cfg =1 input, active high gp11_pd=0 gp11_pu=0 normal mode gp11_db = 1 debounce enabled gpio12 line gp12_fn [3:0] = 0011 line_sw gp12_dir = 0 gp12_cfg =0 output, cmos gp12_pd=0 gp12_pu=0 normal mode gp12_db = 1 debounce enabled table 65 default gpio settings for configuration mode 01
wm8350 production data w pd, march 2010, rev 4.2 122 14.5.2 configuration mode 10 in configuration mode 10, the following general default settings apply: parameter register setting description on polarity on_pol = 1 on pin is active low usb power source usb_slv_500ma = 1 selects 500ma limit in usb slave watchdog timer wdog_mode [1:0] = 01 watchdog set to interrupt on timeout control interface spi_3wire = 0 spi_4wire = 0 spi_cfg = 0 control interface is 2-wire mode 32khz oscillator osc32k_ena = 1 32khz oscillator is enabled real time clock rtc_tick_ena = 1 rtc_clksrc = 0 real time clock is enabled, driven by the internal 32khz oscillator ldo1 ldo1_pin_mode = 0 ldo1_pin_en = 0 ldo1 controlled as normal via register bits the default voltages and the power-up sequence for all dc-dcs and ldos in configuration mode 10 are shown below in table 66 and figure 67. the time delay between each time slot is approximately 1.28ms. note that the limit switch is not enabled automatically in configuration mode 10; as a result, the limit switch remains open when the wm8350 enters the active state.
production data wm8350 w pd, march 2010, rev 4.2 123 supply register setting description dcdc1 dc1_enslot [3:0] = 0001 dc1_vsel [6:0] = 00 1_0010 first timeslot 1.3v dcdc2 dc2_enslot [3:0] = 0000 disabled dcdc3 dc3_enslot [3:0] = 0000 dc3_vsel [6:0] = 01 0_1110 disabled 2.0v dcdc4 dc4_enslot [3:0] = 0000 dc4_vsel [6:0] = 00 0_1110 disabled 1.2v dcdc5 dc5_enslot [3:0] = 0000 disabled dcdc6 dc6_enslot [3:0] = 0011 dc6_vsel [6:0] = 01 0_0110 third timeslot 1.8v ldo1 ldo1_enslot [3:0] = 0000 ldo1_vsel [4:0] = 1_1100 disabled 3.0v ldo2 ldo2_enslot [3:0] = 0010 ldo2_vsel [4:0] = 1_0000 second timeslot 1.8v ldo3 ldo3_enslot [3:0] = 0000 ldo3_vsel [4:0] = 1_0101 disabled 2.3v ldo4 ldo4_enslot [3:0] = 0000 ldo4_vsel [4:0] = 1_1010 disabled 2.8v table 66 default supply voltages / power-up sequence for configuration mode 10 start up dcdc3 dcdc2 dcdc1 dcdc4 dcdc5 dcdc6 ldo1 ldo2 ldo3 ldo4 disabled at start-up time slot1 time slot2 time slot3 time slot4 time slot5 time slot6 disabled at start-up disabled at start-up disabled at start-up disabled at start-up disabled at start-up disabled at start-up the time delay between each time slot is approximately 1.28ms. figure 67 power-up sequence - configuration mode 10
wm8350 production data w pd, march 2010, rev 4.2 124 the default gpio settings for configuration mode 10 are shown below in table 67. gpio pin power domain default gpio function default direction default pull-up / pull-down default de-bounce gpio0 vrtc gp0_fn [3:0] = 0000 gpio gp0_dir = 0 gp0_cfg =0 output, cmos gp0_pd=0 gp0_pu=0 normal mode gp0_db = 1 debounce enabled gpio1 vrtc gp1_fn [3:0] = 0001 pwr_on gp1_dir = 1 gp1_cfg =1 input, active high gp1_pd=0 gp1_pu=0 normal mode gp1_db = 1 debounce enabled gpio2 vrtc gp2_fn [3:0] = 0011 32khz gp2_dir = 0 gp2_cfg =1 output, open drain gp2_pd=0 gp2_pu=0 normal mode gp2_db = 1 debounce enabled gpio3 vrtc gp3_fn [3:0] = 0001 pwr_on gp3_dir = 1 gp3_cfg =0 input, active low gp3_pd=0 gp3_pu=0 normal mode gp3_db = 1 debounce enabled gpio4 dbvdd gp4_fn [3:0] = 0011 hibernate level gp4_dir = 1 gp4_cfg =1 input, active high gp4_pd=1 gp4_pu=0 pull-down gp4_db = 1 debounce enabled gpio5 dbvdd gp5_fn [3:0] = 0000 gpio gp5_dir = 1 gp5_cfg =1 input, active high gp5_pd=0 gp5_pu=0 normal mode gp5_db = 1 debounce enabled gpio6 dbvdd gp6_fn [3:0] = 0000 gpio gp6_dir = 1 gp6_cfg =1 input, active high gp6_pd=0 gp6_pu=0 normal mode gp6_db = 1 debounce enabled gpio7 dbvdd gp7_fn [3:0] = 0000 gpio gp7_dir = 1 gp7_cfg =1 input, active high gp7_pd=0 gp7_pu=0 normal mode gp7_db = 1 debounce enabled gpio8 dbvdd gp8_fn [3:0] = 0000 gpio gp8_dir = 1 gp8_cfg =1 input, active high gp8_pd=1 gp8_pu=0 pull-down gp8_db = 1 debounce enabled gpio9 dbvdd gp9_fn [3:0] = 0000 gpio gp9_dir = 0 gp9_cfg =0 output, cmos gp9_pd=0 gp9_pu=0 normal mode gp9_db = 1 debounce enabled gpio10 line gp10_fn [3:0] = 0000 gpio gp10_dir = 0 gp10_cfg =1 output, open drain gp10_pd=0 gp10_pu=0 normal mode gp10_db = 1 debounce enabled gpio11 line gp11_fn [3:0] = 0010 /wakeup gp11_dir = 1 gp11_cfg =1 (see note) gp11_pd=0 gp11_pu=0 normal mode gp11_db = 1 debounce enabled gpio12 line gp12_fn [3:0] = 0000 gpio gp12_dir = 0 gp12_cfg =0 output, cmos gp12_pd=0 gp12_pu=0 normal mode gp12_db = 1 debounce enabled note : the alternate gpio functions pwr_on and /wakeup are system wakeup events. the debounce time of these functions are determined by gp_dbtime[1:0] + 40ms table 67 default gpio settings for configuration mode 10 note that setting gp11_cfg = 1 results in active low function for /wakeup. in most cases, setting gpn_cfg = 1 results in active high function, but /mr, /wakeup and /ldo_ena are exceptions to this. see section 20.)
production data wm8350 w pd, march 2010, rev 4.2 125 14.5.3 configuration mode 11 in configuration mode 11, the following general default settings apply: parameter register setting description on polarity on_pol = 1 on pin is active low usb power source usb_slv_500ma = 1 selects 500ma limit in usb slave watchdog timer wdog_mode [1:0] = 00 watchdog is disabled control interface spi_3wire = 0 spi_4wire = 0 spi_cfg = 0 control interface is 2-wire mode 32khz oscillator osc32k_ena = 1 32khz oscillator is enabled real time clock rtc_tick_ena = 1 rtc_clksrc = 0 real time clock is enabled, driven by the internal 32khz oscillator ldo1 ldo1_pin_mode = 1 ldo1_pin_en = 0 ldo1 enabled at all times the default voltages and the power-up sequence for all dc-dcs and ldos in configuration mode 11 are shown below in table 68 and figure 68. the time delay between each time slot is approximately 1.28ms. note that the limit switch is not enabled automatically in configuration mode 11; as a result, the limit switch remains open when the wm8350 enters the active state. supply register setting description dcdc1 dc1_enslot [3:0] = 0010 dc1_vsel [6:0] = 110_0010 second timeslot 3.3v dcdc2 dc2_enslot [3:0] = 0000 disabled dcdc3 dc3_enslot [3:0] = 0000 dc3_vsel [6:0] = 00 0_1110 disabled 1.2v dcdc4 dc4_enslot [3:0] = 0011 dc4_vsel [6:0] = 00 0_0110 third timeslot 1.0v dcdc5 dc5_enslot [3:0] = 0000 disabled dcdc6 dc6_enslot [3:0] = 0001 dc6_vsel [6:0] = 01 0_0110 first timeslot 1.8v ldo1 ldo1_enslot [3:0] = 0000 ldo1_vsel [4:0] = 0_0010 (see note below) 1.0v ldo2 ldo2_enslot [3:0] = 0000 ldo2_vsel [4:0] = 1_1010 disabled 2.8v ldo3 ldo3_enslot [3:0] = 0000 ldo3_vsel [4:0] = 1_1111 disabled 3.3v ldo4 ldo4_enslot [3:0] = 0000 ldo4_vsel [4:0] = 1_1111 disabled 3.3v table 68 default supply voltages / power-up sequence for configuration mode 11 not e: in this configuration mode, ldo1 is enabled at all times. therefore, the setting of ldo1_enslot has no effect.
wm8350 production data w pd, march 2010, rev 4.2 126 start up dcdc3 dcdc2 dcdc1 dcdc4 dcdc5 dcdc6 ldo1 ldo2 ldo3 ldo4 disabled at start-up time slot1 time slot2 time slot3 time slot4 time slot5 time slot6 disabled at start-up disabled at start-up disabled at start-up disabled at start-up disabled at start-up the time delay between each time slot is approximately 1.28ms. figure 68 power-up sequence - configuration mode 11
production data wm8350 w pd, march 2010, rev 4.2 127 the default gpio settings for configuration mode 11 are shown below in table 69. gpio pin power domain default gpio function default direction default pull-up / pull-down default de-bounce gpio0 vrtc gp0_fn [3:0] = 0000 gpio gp0_dir = 1 gp0_cfg =1 input, active high gp0_pd=0 gp0_pu=0 normal mode gp0_db = 1 debounce enabled gpio1 vrtc gp1_fn [3:0] = 0001 pwr_on gp1_dir = 1 gp1_cfg =0 input, active low gp1_pd=0 gp1_pu=0 normal mode gp1_db = 1 debounce enabled gpio2 vrtc gp2_fn [3:0] = 0011 32khz gp2_dir = 0 gp2_cfg =1 output, open drain gp2_pd=0 gp2_pu=0 normal mode gp2_db = 1 debounce enabled gpio3 vrtc gp3_fn [3:0] = 0000 gpio gp3_dir = 1 gp3_cfg =1 input, active high gp3_pd=0 gp3_pu=0 normal mode gp3_db = 1 debounce enabled gpio4 dbvdd gp4_fn [3:0] = 0001 /mr gp4_dir = 1 gp4_cfg =1 (see note) gp4_pd=0 gp4_pu=1 pull-up gp4_db = 1 debounce enabled gpio5 dbvdd gp5_fn [3:0] = 0000 gpio gp5_dir = 1 gp5_cfg =1 input, active high gp5_pd=0 gp5_pu=0 normal mode gp5_db = 1 debounce enabled gpio6 dbvdd gp6_fn [3:0] = 0000 gpio gp6_dir = 1 gp6_cfg =1 input, active high gp6_pd=0 gp6_pu=0 normal mode gp6_db = 1 debounce enabled gpio7 dbvdd gp7_fn [3:0] = 0000 gpio gp7_dir = 1 gp7_cfg =1 input, active high gp7_pd=0 gp7_pu=0 normal mode gp7_db = 1 debounce enabled gpio8 dbvdd gp8_fn [3:0] = 0000 gpio gp8_dir = 1 gp8_cfg =1 input, active high gp8_pd=0 gp8_pu=0 normal mode gp8_db = 1 debounce enabled gpio9 dbvdd gp9_fn [3:0] = 0000 gpio gp9_dir = 1 gp9_cfg =1 input, active high gp9_pd=0 gp9_pu=0 normal mode gp9_db = 1 debounce enabled gpio10 line gp10_fn [3:0] = 0011 ch_ind gp10_dir = 0 gp10_cfg =1 output, open drain gp10_pd=0 gp10_pu=0 normal mode gp10_db = 1 debounce enabled gpio11 line gp11_fn [3:0] = 0010 /wakeup gp11_dir = 1 gp11_cfg =1 (see note) gp11_pd=0 gp11_pu=0 normal mode gp11_db = 1 debounce enabled gpio12 line gp12_fn [3:0] = 0011 line_sw gp12_dir = 0 gp12_cfg =0 output, cmos gp12_pd=0 gp12_pu=0 normal mode gp12_db = 1 debounce enabled note : the alternate gpio functions pwr_on and /wakeup are system wakeup events. the debounce time of these functions are determined by gp_dbtime[1:0] + 40ms table 69 default gpio settings for configuration mode 11 note that setting gp4_cfg = 1 results in active low function for /mr. also, setting gp11_cfg = 1 results in active low function for /wakeup. in most cases, setting gpn_cfg = 1 results in active high function, but /mr, /wakeup and /ldo_ena are exceptions to this. see section 20.)
wm8350 production data w pd, march 2010, rev 4.2 128 14.6 configuring the dc-dc converters the configuration of the dc-dc converters is described in the following sections. some of the control fields form part of the custom mode configuration settings and therefore will not require to be set in software in some applications. 14.6.1 dc-dc converter enable the dc-dc converters can be enabled in software using the register fields defined in table 70. all dc-dc converters include a soft-start feature that helps to reduce the inductor current at start up. in order to further reduce supply in-rush current, individual converters should be programmed to start in different time slots within the start-up sequence. in the wm8350 active state, the dc-dc converters can be enabled in software using the dc n _ena bits. setting these bits whilst in the pre-active state (see figure 65) will not immediately enable the corresponding dc-dc converter; these bits will only become effective once the wm8350 has reached the active state. each converter may be programmed to switch on in a selected timeslot within the start-up sequence. the wm8350 will set the dc n _ena field for any dc-dc converter that is enabled during the start-up sequence. note that setting the dc n _enslot fields in software is only relevant to the development mode, as these fields are assigned preset values in each of the custom modes. each converter may be programmed to switch off in a selected timeslot within the shutdown sequence. if a converter is not allocated to one of the 14 shutdown timeslots, it will be disabled when the wm8350 enters the off state. address bit label default description r13 (0dh) or r176 (b0h) 0,1,2,3 ,4,5 dc n _ena dependant on config settings dcdc n converter enable 0 = disabled 1 = enabled note: internal conditions may prevent the converter from actually switching on - see dcdc/ldo status register for actual converter status. note: these bits can be accessed through r13 or through r176. reading from or writing to either register location has the same effect. r181 (b5h) for dc-dc1 r184 (b8h) for dc-dc2 r187 (bbh) for dc-dc3 r190 (beh) for dc-dc4 r193 (c1h) for dc-dc5 r196 (c4h) for dc-dc6 13:10 dc n_ enslo t [3:0] dependant on config settings time slot for dc-dc n start-up 0000 = disabled (do not start up) 0001 = start-up in time slot 1 ? (total 14 slots available) 1110 = start-up in time slot 14 1111 = start up on entering active 9:6 dc n _sdslo t [3:0] 0000 time slot for dc-dcn shutdown. 0000 = shut down on entering off 0001 = shutdown in time slot 1 ?. (total 14 slots available) 1110 = shutdown in time slot 14 1111 = shut down on entering off note: n is number between 1 and 6 that identifies the individual dc-dc converter table 70 enabling and disabling the dc-dc converters
production data wm8350 w pd, march 2010, rev 4.2 129 14.6.2 clocking the dc-dc converters are controlled by an internally generated clock signal from the rc oscillator with a constant frequency of around 2.0mhz for dc-dc 1, 3, 4 and 6, and a constant frequency of around 1.0mhz for dc-dc 2 and 5. 14.6.3 dc-dc buck (step-down) converter control dc-dc converters 1, 3, 4 and 6 are buck converters which can be configured to operate in different operating modes using the register bits described in table 71. in active mode, the dc-dc converters operate to their highest level of performance. the dc-dc converters will automatically select pwm or pulse-skipping operation according to the load condition. this enables the power efficiency to be maximised across a wide range of load conditions. it is possible to force the converters to use the higher performance pwm mode; in this mode, pulse- skipping is disabled and the output voltage is regulated by switching at a constant frequency which improves the transient response at light loads. in standby/hysteretic mode, the dc-dc converters disable some of the internal control circuitry in order to reduce power consumption. the load regulation may be degraded in this mode of operation. the efficiency data in section 9.2.1 shows the conditions under which standby mode can offer better efficiency than active mode. in ldo mode, the dc-dc converters are reconfigured as low power ldos. when dc n _sleep = 0, the corresponding dc n _active register bit selects between active and standby/hysteretic modes for the associated dc-dc converter. the dc n _sleep register bits control the selection of ldo mode. setting dc n _sleep = 1 selects ldo mode. this bit takes precedence over the corresponding dc n _active bit. address bit label default description r177 (b1h) dc-dc active options 0 dc1_active 1 dc-dc n active mode 0 = select standby mode 1 = select active mode 2 dc3_active 1 3 dc4_active 1 5 dc6_active 1 r178 (b2h) dc-dc sleep options 0 dc1_sleep 0 dc-dc n sleep mode 0 = normal dc-dc operation 1 = select ldo mode 2 dc3_sleep 0 3 dc4_sleep 0 5 dc6_sleep 0 note: n is either 1, 3, 4 or 6 and identifies the individual dc-dc converter r248 (f8h) dcdc1 test controls 4 dc1_force_ pwm 0 force dc-dc1 pwm mode 0 = normal dc-dc operation 1 = force dc-dc pwm mode r250 (fah) dcdc3 test controls 4 dc3_force_ pwm 0 force dc-dc3 pwm mode 0 = normal dc-dc operation 1 = force dc-dc pwm mode r251 (fbh) dcdc4 test controls 4 dc4_force_ pwm 0 force dc-dc4 pwm mode 0 = normal dc-dc operation 1 = force dc-dc pwm mode r253 (fdh) dcdc4 test controls 4 dc6_force_ pwm 0 force dc-dc6 pwm mode 0 = normal dc-dc operation 1 = force dc-dc pwm mode table 71 operating mode control for dc-dc converters 1, 3, 4 and 6
wm8350 production data w pd, march 2010, rev 4.2 130 dc-dc converters 1, 3, 4 and 6 can also be controlled by the device hibernate bit, or by hardware input signals l_pwr1, l_pwr2 and l_pwr3. several gpio pins can be assigned as l_pwr pins. each converter can be assigned to one of these three signals, or else to the device hibernate bit. the signals are active high and each converter?s response to the selected signal is programmable as defined in table 72. note that, when a gpio pin is configured as a hibernate input pin, and this input is asserted, then all dc-dc converters will be placed in hibernate mode. in order to use gpio pins as l_pwr pins, they must be configured by setting the respective gp n _fn, and gp n _dir bits to the appropriate value (see section 20). address bit label default description r182 (b6h) for dc-dc1 r188 (bch) for dc-dc3 r191 (bfh) for dc-dc4 r197 (c5h) for dc-dc6 14:12 dc n _hib_m ode [2:0] 001 dc-dc n hibernate behaviour: 000 = use current settings (no change) 001 = select voltage image settings 010 = force standby mode 011 = force standby mode and voltage image settings 100 = force ldo mode 101 = force ldo mode and voltage image settings 110 = reserved 111 = disable output 9:8 dc n _hib_t rig [1:0] 00 dc-dc n hibernate signal select 00 = hibernate register bit 01 = l_pwr1 10 = l_pwr2 11 = l_pwr3 note that hibernate is also selected when a gpio hibernate input is asserted. note: n is either 1, 3, 4 or 6 and identifies the individual dc-dc converter table 72 low-power mode control for dc-dc converters 1, 3, 4 and 6
production data wm8350 w pd, march 2010, rev 4.2 131 the default output voltage for dc-dc converters 1, 3, 4 and 6 is set by writing to the dc n _vsel register bits. the ?image? voltage settings dc n _vimg are alternate values that may be invoked when the hibernate software or hardware control is asserted as described above. the dc-dc converters 1, 3, 4 and 6 are dynamically programmable - the output voltage may be adjusted in software at any time. these converters are buck (step-down) converters; their output voltage can therefore be lower than the input voltage, but cannot be higher. address bit label default description r180 (b4h) for dc-dc1 r186 (bah) for dc-dc3 r189 (bdh) for dc-dc4 r195 (c3h) for dc-dc6 6:0 dc n _vsel [6:0] dependant on config settings dc-dc n converter output voltage settings in 25mv steps. maximum output = 3.4v. 110 0110 = 3.4v 110 0010 = 3.3v 101 0110 = 3.0v 100 1110 = 2.8v ?? 010 0110 = 1.8v 000 1110 = 1.2v 000 0110 = 1.0v 000 0000 = 0.85v r182 (b6h) for dc-dc1 r188 (bch) for dc-dc3 r191 (bfh) for dc-dc4 r197 (c5h) for dc-dc6 6:0 dc n _vimg [6:0] 000 0110 dc-dc n converter output image voltage settings in 25mv steps. maximum output = 3.4v. 110 0110 = 3.4v 110 0010 = 3.3v 101 0110 = 3.0v 100 1110 = 2.8v ?? 010 0110 = 1.8v 000 1110 = 1.2v 000 0110 = 1.0v 000 0000 = 0.85v note: n is either 1, 3, 4 or 6 and identifies the individual dc-dc converter table 73 output voltage control for dc-dc converters 1, 3, 4 and 6 when the dc-dc converters 1, 3, 4 and 6 are disabled, the output can be set to float or else the outputs can be actively discharged through internal resistors. this feature is controlled using the register bits described in table 74. address bit label default description r180 (b4h) for dc-dc1 r186 (bah) for dc-dc3 r189 (bdh) for dc-dc4 r195 (c3h) for dc-dc6 10 dc n _opflt 0 enable discharge of dc-dc n outputs when dc-dc n is disabled 0 = enabled - output to be discharged 1 = disabled - output is left floating note: n is either 1, 3, 4 or 6 and identifies the individual dc-dc converter table 74 output float control for dc-dc converters 1, 3, 4 and 6
wm8350 production data w pd, march 2010, rev 4.2 132 a summary of the mode control and voltage control for dc-dc converter 1 is provided in table 75. note that ?hibernate? in table 75 refers to a gpio hibernate input or to the applicable hibernate signal selected by the dc1_hib_trig field. the equivalent logic applies for dc-dc 3, 4 and 6. note that the dc-dc converters must also be enabled as described in table 70. hibernate dc1_hib_mode dc1_sleep dc1_active operating mode output voltage 0 x 0 0 standby/hysteretic dc1_ vsel 0 x 0 1 active dc1_vsel 0 x 1 x ldo mode dc1_ vsel 1 000 0 0 standby/hysteretic dc1_ vsel 0 1 active dc1_vsel 1 x ldo mode dc1_ vsel 001 0 0 standby/hysteretic dc1_vimg 0 1 active dc1_vimg 1 x ldo mode dc1_vimg 010 x x standby/hysteretic dc1_ vsel 011 x x standby/hysteretic dc1_vimg 100 x x ldo mode dc1_ vsel 101 x x ldo mode dc1_vimg 110 x x disabled n/a 111 x x disabled n/a table 75 dc1 converter operating mode selection 14.6.4 dc-dc boost (step-up) converter control dc-dc converters 2 and 5 are boost converters which can be configured to operate in different operating modes, using the register bits described in table 76. in switch mode, the dc-dc converter acts as a switch between vp2 and l2 or between vp5 and l5 for converter 2 and 5 respectively. the switch is enabled (closed) by setting dc n _ena = 1. the switch is disabled (opened) by setting dc n _ena = 0. note that the switch voltage source on vp2 or vp5 must be >1.2v to ensure reliable operation. in boost mode, the dc-dc converters operate as step-up converters, employing current-mode architecture, capable of powering led lights. the output voltage can be higher than the input voltage, but cannot be lower. different configurations of voltage feedback are available in boost mode, to control the output voltage in different ways. the voltage feedback mode is selected by the dcn_fbsrc register field. when dc n _fbsrc = 00, the converter?s output voltage is set by two external resistors connected to fb2 or fb5. see section 29 for applications information covering the selection of suitable components. when dcn_fbsrc = 01, the converter uses the isinka pin as feedback and adjusts its output voltage in order to achieve the required isinka current. when dcn_fbsrc = 10, the converter uses the isinkb pin as feedback and adjusts its output voltage in order to achieve the required isinkb current. when dc n _fbsrc = 11, the converter?s output voltage is set by two internal resistors, resulting in a fixed 5v output, suitable for usb interfaces. the current-controlled configurations using isinka or isinkb are intended for controlling a string of serially-connected leds driven by one of the dc-dc boost converters. see table 96 for a definition of the cs n _isel register field which determines the required isinka or isinkb current. in these modes, external resistors connected on the fb2 or fb5 pin determine the maximum output voltage. see section 29 for applications information covering the selection of suitable components.
production data wm8350 w pd, march 2010, rev 4.2 133 in all configurations, the input pins vp2 and vp5 must be externally wired to one of the supply rails, batt or line. using line has the advantage that the converters can operate when the battery is flat, defective or absent. note that vp2 and vp5 should not be connected to the usb supply rail. the dc n _rmph and dc n _rmpl bits defined in table 76 should be set according to the desired output voltage in order to optimise the transient response of the converter. selecting a different value could result in sub-harmonic oscillation of the converter. the dc n _ilim bits defined in table 76 should be set according to the intended output load conditions. address bit label default description r183 (b7h) for dc-dc2 r192 (c0h) for dc-dc5 14 dc n _mode 0 dc-dc n converter mode 0 = boost mode 1 = switch mode 6 dc n _ilim 0 dc-dc n peak current limit select 0 = higher peak current 1 = lower peak current 4:3 dc n _rmph dc n _rmpl 01 dc-dc n compensation ramp {dc n _rmph, dc n _rmpl} 00 = 20v < vout 30v 01 = 10v < vout 20v 10 = 5v < vout 10v 11 = vout 5v (will be chosen automatically if dc n _fbsrc=11) 1:0 dc n _fbsrc [1:0] 00 dc-dc n voltage feedback selection 00 = voltage feedback (using external resistor divider on pin fb n ) 01 = current sink isinka used as feedback 10 = current sink isinkb used as feedback 11 = voltage feedback (using internal resistor divider on pin usb) note: n is either 2 or 5 and identifies the individual dc-dc converter table 76 operating mode control for dc-dc converters 2 and 5 dc-dc converters 2 and 5 can also be controlled by the device hibernate bit, or by hardware input signals l_pwr1, l_pwr2 and l_pwr3. several gpio pins can be assigned as l_pwr pins. each converter can be assigned to one of these three signals, or else to the device hibernate bit. the signals are active high and each converter?s response to the selected signal is programmable as defined in table 77. note that, when a gpio pin is configured as a hibernate input pin, and this input is asserted, then all dc-dc converters will be placed in hibernate mode. in order to use gpio pins as l_pwr pins, they must be configured by setting the respective gp n _fn, and gp n _dir bits to the appropriate value (see section 20).
wm8350 production data w pd, march 2010, rev 4.2 134 address bit label default description r183 (b7h) for dc-dc2 r192 (c0h) for dc-dc5 12 dc n _hib_mo de 0 dc-dc n hibernate behaviour: 0 = continue as in active state 1 = disable converter output 9:8 dc n _hib_tri g [1:0] 00 dc-dc n hibernate signal select 00 = hibernate register bit 01 = l_pwr1 10 = l_pwr2 11 = l_pwr3 note that hibernate is also selected when a gpio hibernate input is asserted. note: n is either 2 or 5 and identifies the individual dc-dc converter table 77 hibernate mode control for dc-dc converters 2 and 5 14.6.5 interrupts and fault protection each dc-dc converter is monitored for voltage accuracy and fault conditions. an undervoltage condition is set if the voltage falls below 95% of the required level. the action taken in response to a fault condition can be set independently for each dc-dc converter, as described in table 78. the dc n _erract fields configure the fault response to disable the respective converter or to shut down the entire system if desired. in addition, dc-dc converter fault conditions also generate a second-level interrupt (see section 24). to prevent false alarms during short current surges, faults are only signalled if the fault condition persists. when a dc-dc converter is started up, any initial fault condition is ignored until the converter has been allowed time to settle. the time for which any fault condition is ignored is set by the puto register field, as described in table 78. address bit label default description r181 (b5h) for dc-dc1 r184 (b8h) for dc-dc2 r187 (bbh) for dc-dc3 r190 (beh) for dc-dc4 r193 (c1h) for dc-dc5 r196 (c4h) for dc-dc6 15:14 dc n _errac t [1:0] 00 action to take on dc-dc n fault (as well as generating an interrupt): 00 = ignore 01 = shut down converter 10 = shut down system 11 = reserved (shut down system) r177 (b1h) dcdc active options 13:12 puto [1:0] 00 power up time out value for all converters 00 = 0.5ms 01 = 2ms 10 = 32ms 11 = 256ms note: n is a number between 1 and 6 that identifies the individual dc-dc converter table 78 fault responses for dc-dc converters
production data wm8350 w pd, march 2010, rev 4.2 135 the dc-dc converters and the ldo regulators have a first-level interrupt, uv_int (see section 24). this comprises second-level interrupts from each of the dc-dc converters and the ldo regulators. each dc-dc converter has a dedicated second-level interrupt which indicates an under-voltage condition. these can be masked by setting the applicable mask bit as defined in table 79. address bit label description r28 (1ch) under voltage interrupt status 5 uv_dc6_eint dcdc6 under-voltage interrupt. (rising edge triggered) note: this bit is cleared once read. 4 uv_dc5_eint dcdc5 under-voltage interrupt. (rising edge triggered) note: this bit is cleared once read. 3 uv_dc4_eint dcdc4 under-voltage interrupt. (rising edge triggered) note: this bit is cleared once read. 2 uv_dc3_eint dcdc3 under-voltage interrupt. (rising edge triggered) note: this bit is cleared once read. 1 uv_dc2_eint dcdc2 under-voltage interrupt. (rising edge triggered) note: this bit is cleared once read. 0 uv_dc1_eint dcdc1 under-voltage interrupt. (rising edge triggered) note: this bit is cleared once read. r36 (24h) under voltage interrupt mask as in r28 ?im_? + name of respective bit in r28 mask bits for dc-dc converter under- voltage interrupts each of these bits masks the respective bit in r28 when it is set to 1 (e.g. uv_dc1_eint in r28 does not trigger a uv_int interrupt when im_uv_dc1_eint in r36 is set). note: there is no over-current fault condition for converters 2 and 5. table 79 dc-dc converter interrupts
wm8350 production data w pd, march 2010, rev 4.2 136 the status of the dc-dc converters can be indicated and monitored externally via a gpio pin configured as /vcc_fault (see section 20). when a gpio pin is configured as /vcc_fault output, a logic low level on this pin indicates that there is a fault condition on one of the ldo regulators, dc-dc converters, or the current limit switch. the /vcc_fault output is configurable by the control fields in register r215. the fields described in table 80 determine which of the dc-dcs contribute to the /vcc_fault indication. an undervoltage or overvoltage condition on any unmasked dc-dc converter will cause the /vcc_fault output to be set to logic low. address bit label default description r215 (d7h) vcc_fault 5 dc6_fault 0 dcdc6 fault mask for the /vcc_fault 0 = don't mask converter fault 1 = mask converter fault 4 dc5_fault 0 dcdc5 fault mask for the /vcc_fault 0 = don't mask converter fault 1 = mask converter fault 3 dc4_fault 0 dcdc4 fault mask for the /vcc_fault 0 = don't mask converter fault 1 = mask converter fault 2 dc3_fault 0 dcdc3 fault mask for the /vcc_fault 0 = don't mask converter fault 1 = mask converter fault 1 dc2_fault dcdc2 fault mask for the /vcc_fault 0 = don't mask converter fault 1 = mask converter fault 0 dc1_fault dcdc1 fault mask for the /vcc_fault 0 = don't mask converter fault 1 = mask converter fault table 80 dc converter /vccfault mask bits
production data wm8350 w pd, march 2010, rev 4.2 137 14.7 configuring the ldo regulators the configuration of the ldo regulators is described in the following sections. some of the control fields form part of the custom mode configuration settings and therefore will not require to be set in software in some applications. 14.7.1 ldo regulator enable the ldo regulators can be enabled in software using the register fields defined in table 81. to reduce supply in-rush current, individual regulators should be programmed to start in different time slots within the start-up sequence. in the wm8350 active state, the ldo regulators can be enabled in software using the ldo n _ena bits. setting these bits whilst in the pre-active state (see figure 65) will not immediately enable the corresponding ldo regulators; these bits will only become effective once the wm8350 has reached the active state. each regulator may be programmed to switch on in a selected timeslot within the start-up sequence. the wm8350 will set the ldo n _ena field for any ldo regulator that is enabled during the start-up sequence. note that setting the ldo n _enslot fields in software is only relevant to the development mode, as these fields are assigned preset values in each of the custom modes. each regulator may be programmed to switch off in a selected timeslot within the shutdown sequence. if a regulator is not allocated to one of the 14 shutdown timeslots, it will be disabled when the wm8350 enters the off state. address bit label default description r13 (0dh) or r176 (b0h) dc-dc / ldo requested 8 ldo1_ena 0 ldo1 enable 0 = disabled 1 = enabled note: internal conditions may prevent the converter from actually switching on - see dcdc/ldo status register for actual converter status. 9 ldo2_ena 0 ldo2 enable 0 = disabled 1 = enabled note: internal conditions may prevent the converter from actually switching on - see dcdc/ldo status register for actual converter status. 10 ldo3_ena 0 ldo3 enable 0 = disabled 1 = enabled note: internal conditions may prevent the converter from actually switching on - see dcdc/ldo status register for actual converter status. 11 ldo4_ena 0 ldo4 enable 0 = disabled 1 = enabled note: internal conditions may prevent the converter from actually switching on - see dcdc/ldo status register for actual converter status. note: these bits can be accessed through r13 or through r176. reading from or writing to either register location has the same effect.
wm8350 production data w pd, march 2010, rev 4.2 138 address bit label default description r201 (c9h) for ldo1 r204 (cch) for ldo2 r207 (cfh) for ldo3 r210 (d2h) for ldo4 13:10 ldo n _ensl ot [3:0] dependant on config settings time slot for ldo n start-up 0000 = disabled (do not start up) 0001 = start-up in time slot 1 ? (total 14 slots available) 1110 = start-up in time slot 14 1111 = start up on entering active 9:6 ldo n _sdsl ot [3:0] 0000 time slot for ldo n shutdown. 0000 = shut down on entering off 0001 = shutdown in time slot 1 ?. (total 14 slots available) 1110 = shutdown in time slot 14 1111 = shut down on entering off note: n is a number between 1 and 4 that identifies the individual dc-dc converter table 81 enabling and disabling the ldo regulators 14.7.2 ldo regulator control the ldo regulators can be configured to operate in different modes using the register bits described in table 82. in switch mode, the regulators operate as current-limited switches with no voltage regulation. in ldo regulator mode, the regulators generate an output voltage determined by the ldo n _vsel fields. the ldo regulators are dynamically programmable - the output voltage may be adjusted in software at any time. the regulators are critically damped to ensure there is no voltage overshoot or undershoot when adjusting the output voltage. the default output voltage for the ldo regulators is set by writing to the ldo n _vsel register bits. the ?image? voltage settings ldo n _vimg are alternate values that may be invoked when the hibernate software or hardware control is asserted. address bit label default description r200 (c8h) for ldo1 r203 (cbh) for ldo2 r206 (ceh) for ldo3 r209 (d1h) for ldo4 14 ldo n _swi 0 ldo n regulator mode 0 = ldo voltage regulator 1 = current-limited switch (no voltage regulation, ldo n _vsel has no effect) 4:0 ldo n _vsel [4:0] dependant on config settings ldo n regulator output voltage (when ldo n _swi=0) 1 1111 = 3.3v ? (100mv steps) 1 0000 = 1.8v 0 1111 = 1.65v ? (50mv steps) 0 0000 = 0.9v r202 (cah) for ldo1 r205 (cdh) for ldo2 r208 (d0h) for ldo3 r211 (d3h) for ldo4 4:0 ldo n _vimg [4:0] 1 1100 ldo n regulator output image voltage 1 1111 = 3.3v ? (100mv steps) 1 0000 = 1.8v 0 1111 = 1.65v ? (50mv steps) 0 0000 = 0.9v note: n is a number between 1 and 4 that identifies the individual ldo regulator table 82 controlling regulator voltage and switch mode
production data wm8350 w pd, march 2010, rev 4.2 139 the ldo regulators can also be controlled by the device hibernate bit, or by hardware input signals l_pwr1, l_pwr2 and l_pwr3. several gpio pins can be assigned as l_pwr pins. each regulator can be assigned to one of these three signals, or else to the device hibernate bit. the signals are active high and each regulator?s response to the selected signal is programmable as defined in table 83. note that, when a gpio pin is configured as a hibernate input pin, and this input is asserted, then all ldo regulators will be placed in hibernate mode. in order to use gpio pins as l_pwr pins, they must be configured by setting the respective gp n _fn, and gp n _dir bits to the appropriate value (see section 20). address bit label default description r202 (cah) for ldo1 r205 (cdh) for ldo2 r208 (d0h) for ldo3 r211 (d3h) for ldo4 13:12 ldo n _hib_m ode [1:0] 00 ldo n hibernate behaviour: 00 = select voltage image settings 01 = disable output 10 = reserved 11 = reserved 9:8 ldo n _hib_t rig [1:0] 00 ldo n hibernate signal select 00 = hibernate register bit 01 = l_pwr1 10 = l_pwr2 11 = l_pwr3 note: n is a number between 1 and 4 that identifies the individual ldo regulator table 83 configuring hardware control for ldo regulators when the ldo regulators are disabled, the output can be set to float or else the outputs can be actively discharged through internal resistors. this feature is controlled using the register bits described in table 84. note that the ?float? option is only supported when at least one other ldo regulator remains enabled. if ldo regulators 1, 2, 3 and 4 are all disabled, then the ldo regulator outputs will be discharged, regardless of the ldo n _opflt registers. address bit label default description r200 (c8h) for ldo1 r203 (cbh) for ldo2 r206 (ceh) for ldo3 r209 (d1h) for ldo4 10 ldo n _opflt 0 enable discharge of ldo n outputs when ldo n is disabled 0 = enabled - output to be discharged 1 = disabled - output is left floating note - if ldo regulators 1, 2, 3 and 4 are all disabled, then the outputs will all be discharged, regardless of the ldo n _opflt bit. note: n is a number between 1 and 4 that identifies the individual ldo regulator table 84 output float control for ldo regulators
wm8350 production data w pd, march 2010, rev 4.2 140 14.7.3 interrupts and fault protection each ldo regulator is monitored for voltage accuracy and fault conditions. an undervoltage condition is set if the voltage falls below 95% of the required level. the action taken in response to a fault condition can be set independently for each ldo regulator, as described in table 85. the ldo n _erract fields configure the fault response to disable the respective regulator or to shut down the entire system if desired. in addition, ldo regulator fault conditions also generate a second-level interrupt (see section 24). to prevent false alarms during short current surges, faults are only signalled if the fault condition persists. address bit label default description r201 (c9h) for ldo1 r204 (cch) for ldo2 r207 (cfh) for ldo3 r210 (d2h) for ldo4 15:14 ldo n _erract [1:0] 00 action to take on ldo n fault (as well as generating an interrupt): 00 = ignore 01 = shut down regulator 10 = shut down system 11 = reserved (shut down system) note: n is a number between 1 and 4 that identifies the individual ldo regulator table 85 fault responses for ldo regulators the dc-dc converters and the ldo regulators have a first-level interrupt, uv_int (see section 24). this comprises second-level interrupts from each of the dc-dc converters and the ldo regulators. each ldo regulator has a dedicated second-level interrupt which indicates an under-voltage condition. these can be masked by setting the applicable mask bit as defined in table 86. address bit label description r28 (1ch) under voltage interrupt status 11 uv_ldo4_eint ldo4 under-voltage interrupt. (rising edge triggered) note: this bit is cleared once read. 10 uv_ldo3_eint ldo3 under-voltage interrupt. (rising edge triggered) note: this bit is cleared once read. 9 uv_ldo2_eint ldo2 under-voltage interrupt. (rising edge triggered) note: this bit is cleared once read. 8 uv_ldo1_eint ldo1 under-voltage interrupt. (rising edge triggered) note: this bit is cleared once read. r36 (24h) under voltage interrupt mask as in r28 ?im_? + name of respective bit in r28 mask bits for ldo regulator under-voltage interrupts each of these bits masks the respective bit in r28 when it is set to 1 (e.g. uv_ldo1_eint in r28 does not trigger a uv_int interrupt when im_uv_ldo1_eint in r36 is set). table 86 ldo regulator interrupts
production data wm8350 w pd, march 2010, rev 4.2 141 the status of the ldo regulators can be indicated and monitored externally via a gpio pin configured as /vcc_fault (see section 20). when a gpio pin is configured as /vcc_fault output, a logic low level on this pin indicates that there is a fault condition on one of the ldo regulators, dc-dc converters, or the current limit switch. the /vcc_fault output is configurable by the control fields in register r215. the fields described in table 87 determine which of the ldos contribute to the /vcc_fault indication. an undervoltage or overvoltage condition on any unmasked ldo will cause the /vcc_fault output to be set to logic low. address bit label default description r215 (d7h) vcc_fault 11 ldo4_fault 0 ldo4 fault mask for the /vcc_fault 0 = don't mask converter fault 1 = mask converter fault 10 ldo3_fault 0 ldo3 fault mask for the /vcc_fault 0 = don't mask converter fault 1 = mask converter fault 9 ldo2_fault 0 ldo2 fault mask for the /vcc_fault 0 = don't mask converter fault 1 = mask converter fault 8 ldo1_fault 0 ldo1 fault mask for the /vcc_fault 0 = don't mask converter fault 1 = mask converter fault table 87 ldo regulator /vccfault mask bits 14.7.4 additional control for ldo1 by default, all dc converters and ldos are disabled in the off state. additional control is provided to enable ldo1 to be configured differently, allowing it to be enabled in the off state, or else to be controlled by a gpio pin configured as /ldo_ena (see section 20.2.2). these options are selected by setting the register fields described in table 88. in practical applications, however, these options are set by the config mode settings and are not set by users. operation of ldo1 in the off state is subject to the restriction that vout1 must be set to at least 1.8v. condition description ldo1_pin_mode = 0 ldo1 controlled as normal via register bits ldo1_pin_mode = 1 ldo1_pin_en = 0 ldo1 enabled at all times ldo1_pin_mode = 1 ldo1_pin_en = 1 ldo1 controlled by /ldo_ena only table 88 ldo1 additional control note that ldo1 is always disabled in backup and zero states. note that, when ldo1_pin_mode = 1, then ldo1 only operates as determined by the ldo1_vsel field. the hibernate settings are ignored under this configuration.
wm8350 production data w pd, march 2010, rev 4.2 142 14.8 dc-dc converter operation 14.8.1 overview the wm8350 provides six dc-dc switching converters. four of these are buck (step-down) converters and two are boost (step-up) converters. the principal characteristics and typical usage for each dc-dc converter are shown below. dc-dc 1 / 6 dc-dc 2 / 5 dc-dc 3 / 4 typical application other system components constant-current led drivers or i/o supply digital supply for wm8350 and other components converter type step-down step-up, using external nfet step-down input voltage range 2.7v to 5.5v output voltage range 0.85v to 3.4v 5v to 20v 0.85v to 3.4v load current rating up to 1a (may be limited by application) 170ma @ 5v 40ma @ 20v up to 500ma (may be limited by application) switching frequency 2.0mhz 1.0mhz 2.0mhz table 89 dc-dc converter characteristics
production data wm8350 w pd, march 2010, rev 4.2 143 14.8.2 dc-dc step down converters dc-dc converters 1, 3, 4 and 6 are versatile step-down, pulse-width-modulated (pwm) dc-dc converters designed to deliver high power efficiency across full load conditions. the converters offer active and standby/hysteretic operating modes in order to maximise efficiency for different loads. a low-power ldo sleep mode is also available to further reduce quiescent current at very lightly loaded conditions. the dc-dc converters maintain output voltage regulation during the switch-over between operating modes. the step-down regulators are designed with a fixed frequency current mode architecture. the current feedback loop is through the pmos current path and is amplified and summed with an internal slope compensation network. the voltage feedback loop is through an internal feedback divider. the on time is determined by comparing the summed current feedback and the output of the switcher error amplifier. the period is set by the internal rc oscillator, which provides a 2.0mhz clock. a supply pin (pvdd) provides the core supply for dc-dc converters 3 and 6. another supply pin (linedcdc) provides the core supply for dc-dc converters 1 and 4. the input voltage connection to dc-dc converters 1, 3, 4 and 6 is provided on pv1, pv3, pv4 and pv6 respectively. these input voltages may be provided from the line voltage. the connections to dc-dc converter 1 are illustrated in figure 69. the equivalent circuit applies to dc-dc converters 3, 4 and 6 also. figure 69 step-down dc-dc converter connections the external components at the converter output are required by the dc-dc converter integral loop compensation circuit. note that the recommended output capacitor cout varies according to the required transient response on dc-dc1 and dc-dc6. a single recommended value is provided for cout on dc-dc3 and dc-dc4. see section 29.2 for details of the recommended external components.
wm8350 production data w pd, march 2010, rev 4.2 144 14.8.3 dc-dc step up converters dc-dc converters 2 and 5 are versatile step-up pulse-width-modulated (pwm) dc-dc converters designed to deliver high power efficiency across full load conditions. the converters can also be used as switches. dc-dc converters 2 and 5 are designed with a fixed frequency current mode architecture. the clock frequency is set by the internal rc oscillator, which provides a 1.0mhz clock. the pvdd supply pin provides the core supply for dc-dc converter 2. the linedcdc supply pin provides the core supply for dc-dc converter 5. the connections to dc-dc converter 2 in constant voltage mode are illustrated in figure 70. the equivalent circuit applies to dc-dc converter 5 also. see section 29.4 for details of the connections for the constant current and usb operating modes of the dc-dc step-up converters. figure 70 step-up dc-dc converter connections the external components at the converter output are required by the dc-dc converter integral loop compensation circuit. note that the recommended output capacitor cout varies according to the required output voltage. see section 29.4 for details of the recommended external components.
production data wm8350 w pd, march 2010, rev 4.2 145 14.9 ldo regulator operation the wm8350 provides four identical ldo voltage regulators to generate accurate, low-noise supply voltages for various system com ponents. the ldos can also operate as current-limited switches, with no voltage regulation; this is useful for ?hot swap? outputs, i.e. supply rails for external devices that are plugged in when the system is already powered up - the current-limiting function prevents the in-rush current into the external device from disturbing other system power supplies. the ldo regulators are dynamically programmable. each regulator output is current-limited; the output voltage is automatically throttled back if the load current exceeds the limit. a single supply pin (ldovdd) provides the core supply for all four ldos. the input voltage connection to ldo1 and ldo2 is provided on the vina pin. the input voltage connection to ldo3 and ldo4 is provided on the vinb pin. these input voltages can be provided from one of the dc-dc converters or from the line voltage. note that separate voltage regulators are provided to generate the backup supply vrtc and the microphone bias voltage micbias. the connections to ldo regulator 1 are illustrated in figure 71. the equivalent circuit applies to ldo2, ldo3 and ldo4. figure 71 ldo regulator connections an input and output capacitor are recommended for each ldo regulator, as illustrated above. see section 29.5 for details of the recommended external components.
wm8350 production data w pd, march 2010, rev 4.2 146 15 current limit switch 15.1 general description the wm8350 includes an on-chip current limit switch to control external devices and to support hot- plugging of accessories and power supplies. when the switch is enabled, it normally has a low resistance, allowing current to pass through (from the ip pin to the op pin). if the current limit threshold is reached, the wm8350 can raise an interrupt, disable the switch and/or shut down the whole device. 15.2 configuring the current limit switch 15.2.1 current limit switch enable the current limit switch can be enabled in software using the register fields defined in table 90. in active mode, the current limit switch can be enabled in software using the ls_ena bit. setting this bit whilst in the pre-active state (see figure 65) will not immediately enable the current limit switch; this bit will only become effective once the wm8350 has reached the active state. the current limit switch may be programmed to become enabled in a selected timeslot within the start-up sequence. when this happens, the wm8350 will set the ls_ena bit. note that setting the ls_enslot field in software is only relevant to the development mode, as this field is assigned a preset value in each of the custom modes. the current limit switch may be programmed to switch off in a selected timeslot within the shutdown sequence. if the limit switch is not allocated to one of the 14 shutdown timeslots, it will be disabled when the wm8350 enters the off state. the current limit switch behaviour in hibernate mode is controlled by the ls_hib_mode bit. address bit label default description r13 (0dh) 15 ls_ena 0 limit switch enable 0 = disabled 1 = enabled note: internal conditions may prevent the converter from actually switching on - see dcdc/ldo status register for actual converter status. r176 (b0h) dc-dc / ldo requested 15 note: ls_ena can be accessed through r13 or through r176. reading from or writing to either register location has the same effect. r199 (c7h) limit switch control 13:10 ls_enslot [3:0] 0000 time slot for limit switch start-up 0000 = disabled (do not start up) 0001 = start-up in time slot 1 ? (total 14 slots available) 1110 = start-up in time slot 14 1111 = start-up on entering active 9:6 ls_sdslot [3:0] 0000 time slot for limit switch shutdown. 0000 = shut down on entering off 0001 = shutdown in time slot 1 ?. (total 14 slots available) 1110 = shutdown in time slot 14 1111 = shut down on entering off 4 ls_hib_mo de 0 limit switch hibernate mode setting 0 = disabled 1 = leave setting as in active mode table 90 enabling and disabling the current limit switch
production data wm8350 w pd, march 2010, rev 4.2 147 15.2.2 current limit switch bulk detection control the current limit switch can be connected to voltages which may be higher than the device line voltage. to support this capability, the switch is powered from the highest available voltage; this requires a bulk detection circuit in order to select the highest available voltage. the bulk detection circuit is always enabled whenever the current limit switch is enabled. it is possible to control whether the bulk detection circuit is enabled or not when the current limit switch is disabled. this is controlled in active mode by the ls_prot bit, and in hibernate mode by the ls_hib_prot bit. disabling the bulk detection circuit will reduce power consumption. it is important to note, however, that the bulk detection circuit should always be enabled if voltages greater than line could be present on ip or op. this applies regardless of whether the current switch is open or closed. address bit label default description r199 (c7h) limit switch control 1 ls_hib_pro t 1 controls the bulk detection circuit when limit switch is disabled in hibernate mode. 0 = bulk detection disabled 1 = bulk detection enabled 0 ls_prot 1 controls the bulk detection circuit when limit switch is disabled in active mode. 0 = bulk detection disabled 1 = bulk detection enabled table 91 current limit switch bulk detection control 15.2.3 interrupts and fault protection the response to an over-current condition is selectable. to prevent false alarms during short current surges, faults are only signalled if the fault condition persists. address bit label default description r199 (c7h) limit switch control 15:14 ls_erract [1:0] 00 current limit detection behaviour 00 = ignore 01 = disable switch 10 = shut down system 11 = shut down system table 92 fault response for the current limit switch the limit switch has its own first-level interrupt, oc_int (see section 24). this contains a single second-level interrupt, oc_ls_eint, indicating an over-current condition. oc_ls_eint can be masked by setting the im_oc_ls_eint bit. address bit label description r29 (1dh) over current interrupt status 15 oc_ls_eint limit switch over-current interrupt. (rising edge triggered) note: this bit is cleared once read. r37 (25h) over current interrupt mask 15 im_oc_ls_eint mask bit for limit switch over-current interrupt when set to 1, im_oc_ls_eint masks oc_ls_eint in r29 and does not trigger an oc_int interrupt when oc_ls_eint is set). table 93 current limit switch interrupts
wm8350 production data w pd, march 2010, rev 4.2 148 the status of the current limit switch can be indicated and monitored externally via a gpio pin configured as /vcc_fault (see section 20). when a gpio pin is configured as /vcc_fault output, a logic low level on this pin indicates that there is a fault condition on one of the ldo regulators, dc-dc converters, or the current limit switch. the /vcc_fault output is configurable by the control fields in register r215. the ls_fault bit described in table 94 selects whether the limit switch contributes to the /vcc_fault indication. when ls_fault = 0, then an overcurrent condition on the limit switch will cause the /vcc_fault output to be set to logic low. address bit label default description r215 (d7h) vcc_fault 15 ls_fault 0 limit switch fault mask for the /vcc_fault 0 = don't mask converter fault 1 = mask converter fault table 94 limit switch /vccfault mask
production data wm8350 w pd, march 2010, rev 4.2 149 16 current sinks (led drivers) 16.1 general description the wm8350 includes five pins for driving different types of leds. the pins isinka and isinkb provide programmable constant-current sinks designed to drive strings of serially connected leds, including white leds used in display backlights or in camera flash applications. using isinka and isinkb in conjunction with dc-dc converters 2 or 5 provides a particularly power-efficient way to drive such led strings. the ground connection associated with these two current sinks is the sinkgnd pin. isinkc, isinkd and isinke are regular open-drain outputs. they are alternate functions of the gpio10, gpio11 and gpio12 pins respectively. these gpios are provided on the line power domain; the associated ground connection is the gnd pin. 16.2 constant-current sinks isinka and isinkb are dedicated led driver pins equipped with programmable constant current sinks. they are designed to drive strings of serially connected white leds such as those used in display backlights or photo-flash applications. powering leds in this way is particularly power efficient because no series resistor is required. dc-dc converters 2 or 5, operating as a current- controlled voltage source, are ideal power sources for led strings. these converters can generate voltages higher than batt or line, which can overcome the combined forward voltages of long led strings (e.g. a string of 7 white leds with a forward voltage of 4v requires at least 28v). 16.2.1 enabling the sink current in active mode, isinka and isinkb can be enabled in software using the register fields defined in table 95. if required, the current sink functions may also be controlled by the hibernate bit. note that these control bits do not exist for isinkc, isinkd or isinke. address bit label default description r14 (0eh) power mgmt (7) 0 cs1_ena 0 current sink 1 enable (isinka pin) 0 = disabled 1 = enabled r172 (ach) current sink driver a 15 12 cs1_hib_mo de 0 current sink 1 behaviour in hibernate mode 0 = disable current sink in hibernate 1 = leave current sink as in active r14 (0eh) power mgmt (7) 1 cs2_ena 0 current sink 2 enable (isinkb pin) 0 = disabled 1 = enabled r174 (aeh) current sink driver b 15 12 cs2_hib_mo de 0 current sink 2 behaviour in hibernate mode 0 = disable current sink in hibernate 1 = leave current sink as in active note: cs1_ena and cs2_ena can be accessed through r14 or through r172/r174. reading from or writing to either register location has the same effect. table 95 enabling isinka and isinkb when isinka or isinkb is used in conjunction with dc-dc converter 2 or 5, the isink should always be switched on before the dc-dc converter is switched on. conversely, the dc-dc converter should always be switched off before the isink is switched off. if high voltages are used, additional external components may also be needed to protect the wm8350.
wm8350 production data w pd, march 2010, rev 4.2 150 16.2.2 programming the sink current the sink currents for isinka and isinkb can be independently programmed by writing to the cs1_isel and cs2_isel register bits. the current steps are logarithmic to match the logarithmic light sensitivity characteristic of the human eye. the step size is 1.5db (i.e. the current doubles every four steps). address bit label default description r172 (ach) current sink driver a 5:0 cs1_isel 00 0000 isinka current = 4.05 a 2 cs n _isel/4 where cs1_isel is an unsigned binary number minimum: 00 0000 = 4.05 a, maximum: 11 1111 = 220ma (from circuit simulation) or cs1_isel = 13.3 log (desired current / 4.05 a) r174 (aeh) current sink driver b 5:0 cs2_isel 00 0000 isinkb current = 4.05 a 2 cs n _isel/4 where cs2_isel is an unsigned binary number minimum: 00 0000 = 4.05 a, maximum: 11 1111 = 220ma (from circuit simulation) or cs2_isel = 13.3 log (desired current / 4.05 a) table 96 controlling the sink current for isinka and isinkb note that currents above 40ma are not supported continuously; these settings are intended for flash mode only. 16.2.3 flash mode each current sink can either sink current continuously (led mode) or in short bursts (flash mode). the operating mode is selected by the cs n _flash_mode bits, as described in table 97. in led mode, the current sink is controlled by setting cs n _drive. for as long as this bit is asserted, the led is enabled continuously. in flash mode, the current sink may be set to automatically flash every 4 seconds by setting cs n _flash_rate = 1, or may be triggered normally by setting cs n _flash_rate = 0. when normal triggering is selected in flash mode, the trigger control can be either a gpio flash input (see section 20) or a register control. setting cs n _trigsrc = 1 selects gpio as the trigger. the flash will be edge triggered by the selected gpio input. setting cs n _trigsrc = 0 selects the register field cs n _drive as the trigger. in this case, writing a 1 to cs n _drive will trigger a flash; this bit will be reset at the end of the flash. in all flash modes, the duration of each flash is set by cs n _flash_dur. the status of each current sink may be read from the csn_drive bits. in all modes, the current sink must also be enabled via the applicable cs n _ena bit (see table 95). note that some photo-flash applications may require a reservoir capacitor to store sufficient charge for the flash.
production data wm8350 w pd, march 2010, rev 4.2 151 address bit label default description r173 (adh) for isinka r175 (afh) for isinkb 15 cs n _flash_m ode 0 determines the function of the current sink 0 = led mode 1 = flash mode 14 cs n _trigsrc 0 selects the trigger in flash mode. 0 = flash triggered by cs n _drive bit 1 = flash triggered from gpio pin configured as flash this bit has no effect when cs n _flash_mode=0 13 cs n _drive 0 enables the current sink isinkn led mode- 0 = disable led 1 = enabled led flash mode- register bit used to trigger the flash, if cs1_trigsrc is set to 0. flash is started when the bit goes high, it is then reset at the end of the flash duration. duration is determined by cs1_flash_dur. this bit has no effect if cs1_trigsrc is set to 1. 12 csn_flash_r ate 0 determines the flash rate 0 = normal operation. once per trigger (either register bit or gpio) 1 = flash will be internally triggered every 4 second 9:8 cs n _flash_d ur [1:0] 00 sets duration of flash 00 = 32ms 01 = 64ms 10 = 96ms 11 = 1024ms note: n is either ?1? for isinka or ?2? for isinkb table 97 configuring flash mode for isinka and isinkb note that the cs n _drive bits are always reset when exiting the hibernate state, regardless of the reg_reset_hib_mode bit. if the cs n _drive is enabled in the hibernate state, then it must be re-enabled by writing to the applicable control register after exiting the hibernate state. this may result in a short interruption to the current sink output.
wm8350 production data w pd, march 2010, rev 4.2 152 16.2.4 on/off ramp timing the sink currents for isinka and isinkb can be programmed to switch on and off gradually in led and in flash modes. the current ramp durations are set as described in table 98. address bit label default description r173 (adh) for isinka r175 (afh) for isinkb 5:4 cs n _off_ra mp [1:0] 00 switch-off ramp duration led mode flash mode 00 = instant (no ramp) 01 = 0.25s 10 = 0.5s 11 = 1s 00 = instant (no ramp) 01 = 1.95ms 10 = 3.91ms 11 = 7.8ms 1:0 cs n _on_ram p [1:0] 00 switch-on ramp duration similar to cs n _off_ramp note: n is either ?1? for isinka or ?2? for isinkb table 98 configuring on/off ramp timing for isinka and isinkb 16.2.5 interrupts and fault protection the current sinks have a first-level interrupt, cs_int (see section 24). this comprises two second- level interrupts which indicate if the current sinks are unable to sink the amount of current that has been programmed. cs1_eint and cs2_eint can be masked by setting the applicable mask bit as defined in table 99. address bit label description r26 (1ah) interrupt status 2 13 cs1_eint flag to indicate drain voltage can no longer be regulated and output current may be out of spec. (rising edge triggered) note: this bit is cleared once read. 12 cs2_eint flag to indicate drain voltage can no longer be regulated and output current may be out of spec. (rising edge triggered) note: this bit is cleared once read. r34 (22h) interrupt status 2 mask 13:12 ?im_? + name of respective bit in r26 each bit in r34 enables or masks the corresponding bit in r26. the default value for these bits is 0 (unmasked). table 99 current sink interrupts
production data wm8350 w pd, march 2010, rev 4.2 153 16.3 open-drain led outputs the three open-drain outputs isinkc, isinkd and isinke are alternate functions of the gpio10, gpio11 and gpio12 pins, respectively (see section 20). they can drive leds connected to line, with a series resistor. note that the gpio pins have other alternate functions, which will not be available that pin is configured as isinkc, isinkd or isinke. 16.4 led driver connections the recommended connections for leds on isinka and isinkb are illustrated in figure 72. figure 72 led connections to isinka and isinkb the recommended connections for leds on isinkc, isinkd and isinke are illustrated in figure 73. figure 73 led connections to isinkc, isinkd and isinke
wm8350 production data w pd, march 2010, rev 4.2 154 17 power supply control 17.1 general description the wm8350 can take its power supply from a wall adaptor, a usb interface or from a single-cell lithium battery. the wm8350 autonomously chooses the most appropriate power source available, and supports hot-swapping between sources (ie. the system can remain in operation while different sources are connected and disconnected). comparators within the wm8350 identify which power supplies are available and select the power source in the following order of preference: ? wall adaptor (line pins) ? usb power rail (usb pins) ? battery (batt pins) note that the wall supply is always the first choice of supply, (providing that it is within required limits), even if the wall supply voltage is lower than the usb voltage. when wall or usb is selected as the power source, this may be used to charge the battery, using the integrated battery charger circuit. for battery charging to occur, the usb or line supply voltage must be no less than 4.0v. figure 74 illustrates the wm8350 connections associated with the wall, usb and battery supplies. wm8350 line wall_fb line_sw hivdd batt usb wall figure 74 wm8350 power supply connections the wall adaptor supply connects to line via a fet switch as illustrated in figure 74. the fet switch is necessary in order to provide isolation between the wall supply and the battery/usb supplies; this is vital in the event of the usb voltage being greater than the wall supply voltage. the wall adapter voltage is sensed directly on the wall_fb pin; this allows the wm8350 to determine the preferred supply, including when the fet is switched off. the gate connection to the external fet is controlled by line_sw, which is an alternate function that can be enabled on gpio12 (see section 20). note that, if the usb connection is not used, then the fet may not be required and the wall supply may be connected directly to line. line is primarily an output from the wm8350; this output is the preferred supply, where the wm8350 has arbitrated between the wall, battery and usb connections. this output is suitable for supplying power to the other blocks of the wm8350, including the dc-dc converters and ldo regulators. line is also an input under some conditions, such as battery charging from wall or providing power at the usb connection.
production data wm8350 w pd, march 2010, rev 4.2 155 hivdd is an external connection which exists for the purposes of decoupling only. it represents the highest available power supply connected to the wm8350. it should be noted that the preferred supply (on the line pin) is not necessarily the same voltage as hivdd - the wall supply will always be the preferred voltage when it is within the intended limits, even if it is not also the highest available source. the main battery connects directly to the batt pin. when the battery is the preferred supply source, this pin is an input. when battery charging is in operation, this pin is an output. (note that the backup vrtc battery is connected separately - see section 17.6.) the usb interface connects directly to the usb pin. in usb master mode (usb is less than line), the wm8350 can supply power to external devices on this pin. in usb slave mode (usb is greater than line), the wm8350 can use this pin as an input to power the device and/or to charge a battery connected to the batt pin. note that, when usb is the preferred power supply, the battery may also be used if necessary to supplement the current drawn from the usb pin (ie. to source current into line when required). all loads connected to the wm8350 should normally be connected to the line pin. the inputs to the dc-dc converters and ldos should be connected to the line pin. it is not recommended to connect any load directly to the battery (batt). note that the inputs to the ldos may be connected to the outputs of the dc-dcs if desired. 17.2 battery powered operation the wm8350 selects battery power when the battery voltage is higher than the wall (line) and usb supplies. in practical usage, this means the battery is used when wall (line) and usb are both disconnected. the battery can also be used to supplement the usb supply when required (ie. to source current into line). if the wall (line) or usb supply becomes available during battery operation, then the selected power source is adjusted accordingly. battery pack temperature sensing is enabled by default. the battery?s ntc resistor is monitored via the aux1 pin on the wm8350, as described in section 17.7. note that the absence of this ntc connection will lead to a temperature failure condition being detected and battery charging will not be possible. safe operation of the battery charger outside the designed operating temperatures is not guaranteed when a battery ntc resistor is not used. the designed operating temperatures are noted in section 17.7.7. 17.3 wall adaptor (line) powered operation the wm8350 selects wall adaptor power via the line pins whenever the wall adaptor supply is within the normal operating limits of 4.0v to 5.5v. the wall adaptor is also selected as the power source below 4.0v in the case where it is the highest available power source. the minimum line voltage is a programmable threshold in the range 2.9v to 3.6v (see section 18). the maximum recommended operating voltage for line is 5.5v. note that usb power is not used when a suitable line supply is available, even if the usb supply is higher than the wall (line) supply. if the wall (line) supply becomes unsuitable and a usb is available, then the usb supply will be selected as the preferred power source. note that, when hot-swapping from wall (line) to usb supply, a usable battery must be present on the batt pin. when the wall (line) supply is selected and a battery is connected, then trickle charging is enabled by default, including when the wm8350 is in the off or hibernate states. when the wm8350 is in the active state, then fast charging may be selected under software control.
wm8350 production data w pd, march 2010, rev 4.2 156 17.4 usb powered operation the wm8350 selects usb slave mode by default. in usb slave mode, the usb pin can be used as one of the sources of power for the wm8350. in usb master mode (selected using the usb_mstr register bit) the wm8350 can provide power to an external usb device. in usb slave mode, the wm8350 selects usb power if the wall (line) supply is outside its normal operating limits and the usb supply is the highest supply source available. for a transition from off to active state to occur under usb power, the usb supply must be no less than 4.0v. the maximum current drawn from the usb supply can be set to 100ma (usb low power mode) or 500ma (usb high power mode). the default is set according to the selected config mode (see section 14). when the wm8350 is in the active state, usb high power mode can be selected using the register bits usb_mstr_500ma (in usb master mode) or usb_slv_500ma (in usb slave mode) as defined in table 100. if a usb current higher than the applicable threshold is demanded, then internal protection circuits will limit the usb current, and the usb_limit_eint interrupt will be asserted. short term currents higher than 500ma can also be supported. this may be necessary for supporting transient demands (eg. for a hard drive starting up). when the usb_nolim register field is set, the internal protection circuits are disabled, and the current limit interrupt threshold is raised to double the normal value. in 500ma mode, the current limit interrupt threshold is raised to approximately 1a. this feature must be used with caution, as the internal protection circuits are disabled when usb_nolim is set. the maximum steady-state current supported is 500ma; higher currents can only be supported for short term transients. usb power may be supplemented by battery power if available and if necessary to maintain the usb current within the applicable limit. if a suitable wall (line) supply becomes available during usb operation, then the wall (line) supply will be selected as the preferred power source. note that, when hot-swapping from usb to wall supply, a usable battery must be present on the batt pin. in usb low power mode, trickle charging is enabled by default. trickle charging is suspended if necessary to keep within the 100ma usb limit. in usb high power mode, fast charging is possible (subject to other conditions - see section 17.7.4). the fast charge current is controlled dynamically as necessary to keep the overall usb current within the 500ma limit. note that battery charging from the usb source is only possible in usb slave mode. usb power may be suspended by writing to the usb_suspend register bit. setting this bit to ?1? disconnects the wm8350 from the usb supply, resulting in the selection of battery as the power source. usb suspend mode is invoked under software control, by writing to the usb_su spend bit. suspend mode should be invoked whenever the usb connection is not used. to comply with the usb 2.0 specification, the host processor should initially invoke usb suspend mode after the wm8350 has successfully started up, and whenever the usb connection is not in use. if the usb connection is active and usb enumeration has been completed, the host processor may (but is not required to) switch the wm8350 into usb low-power mode or usb high-power mode. however, if wall adaptor power is available, it is recommended to remain in usb suspend mode.
production data wm8350 w pd, march 2010, rev 4.2 157 address bit label default description r4 (04h) system control 2 14 usb_suspend 0 opens the usb switch 0 = usb enabled 1 = usb suspended the register bit defaults to 0, when a reset happens or line < uvlo or the system fail on boot due to the upper limit of the hysteresis comp not being met. 13 usb_mstr 0 set the chip to be a usb master 0 = slave 1 = master the register bit defaults to 0, when a reset happens or the usb state machine moves from master mode to slave m ode. 11 usb_mstr_500ma 0 set 500ma or 100ma mode when the usb switch is in master mode 0 = 100ma 1 = 500ma 9 usb_slv_500ma dependant on config settings set 500ma or 100ma mode when the usb switch is in slave mode 0 = 100ma 1 = 500ma the register bit defaults to 0, when a reset happens or line wm8350 production data w pd, march 2010, rev 4.2 158 17.5 external interrupts the power supply control circuit has a first-level interrupt, ext_int (see section 24). this comprises three second-level interrupts which indicate if the usb, wall or battery supplies have been connected or disconnected. internal feedback signals usb_fb, wall_fb and batt_fb are used to indicate when the associated supplies are present. note that these interrupt events occur on both the rising and falling edges of the trigger events. they can be masked by setting the applicable mask bits as defined in table 102. address bit label description r31 (1fh) comparator interrupt status 15 ext_usb_fb_eint usb_fb changed interrupt. (rising and falling edge triggered) note: this bit is cleared once read. 14 ext_wall_fb_eint wall_fb changed interrupt. (rising and falling edge triggered) note: this bit is cleared once read. 13 ext_batt_fb_eint batt_fb changed interrupt. (rising and falling edge triggered) note: this bit is cleared once read. r39 (27h) comparator interrupt status mask 15:13 ?im_? + name of respective bit in r31 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. each bit in r39 enables or masks the corresponding bit in r31. the default value for these bits is 0 (unmasked). table 102 external interrupts 17.6 backup power a backup power source should be provided for the wm8350 on the vrtc pin. this can be a small rechargeable battery or a high-capacitance capacitor (supercap). the purpose of this component is to power the always-on functions such as the on-chip crystal oscillator, rtc and alarm control registers and uvlo comparator. as these circuit blocks store settings required for start-up, it is desirable that they continue to operate even when no other power source is available. the vrtc battery (or capacitor) maintains its charge from the wall (line), usb or batt sources. the connection is illustrated in figure 75. the series resistor limits the vrtc charge current. the 1 f capacitor is recommended also for stability; if this capacitor is too small or is not present, the vrtc output may oscillate and cause a system reset. wm8350 small battery or super-cap vrtc gnd line usb batt primary power source secondary power source third power source vrtc regulator 1 f 1k -2.2k always-on circuitry figure 75 backup power note that, if the main battery is not present or is heavily discharged, and the wm8350 enters backup mode from wall or usb power, then leakage may occur between vrtc and line. this will cause the backup power source to be drained more quickly, and reduce the time for which the wm8350 can maintain the rtc.
production data wm8350 w pd, march 2010, rev 4.2 159 the leakage occurs via the switched-vrtc connection (swvrtc) and the aux1 pin; a resistor is normally connected between these pins as part of the battery temperature detection circuit, as illustrated in section 17.7.1. the leakage does not occur if the wm8350 enters backup mode from battery power, because the switched-vrtc output is not enabled in this case. if no main battery is present in the system, then the swvrtc pin should be left floating; this will prevent any leakage in backup mode. if the application supports the connection of a main battery, then it is important to select a battery pack where the ntc resistance is around 100k ? at 25oc. this will limit the leakage current to a maximum of 23 a in backup mode. battery packs with lower ntc resistance are not recommended as the leakage current in backup will be higher. if no backup battery is present in the system, then the leakage current is of no importance, as the backup state is not supported. 17.7 battery charger 17.7.1 general description the wm8350 incorporates a battery charger which is designed for single-cell lithium batteries. the battery charger can operate from either the wall (line) or usb power sources. trickle charging at 50ma is enabled by default. the battery charger configuration and termination can run without any intervention required by the host processor. the battery charger voltage and currents are programmable. trickle charging at either 50ma or 100ma is supported; fast charging from 50ma up to 750ma is possible under certain conditions. note that charging from the usb power is subject to the 100ma or 500ma overall limit on the usb source (see section 17.4). battery pack temperature sensing is enabled by default. the connection to the battery?s ntc resistor is made using the swvrtc pin and the aux1 pin, as illustrated in figure 76. the swvrtc pin is a reference source controlled by the wm8350. the aux1 pin (also an input to the auxadc) is used as the input to the temperature sensing circuit. note that the absence of the ntc connection will lead to a temperature failure condition being detected and battery charging will not be possible. typical connections for the wm8350 battery charger are illustrated in figure 76. the resistor value between swvrtc and aux1 should be selected to match the ntc. a typical value is 100k . usb host ntc 100k wall power source figure 76 typical connections for wm8350 battery charger
wm8350 production data w pd, march 2010, rev 4.2 160 the wm8350 monitors the battery status via the aux1 pin and by voltage/current sensing on other pins. see section 17.7.7 for details of the battery fault conditions and reporting. if the application is intended to run without a battery present, then it is recommended that a 3.3 f capacitor be placed on the batt pin to ensure correct charger behaviour. also, the swrtc pin should be left floating, to avoid leakage in backup mode as described in section 17.6. the battery charger interrupts should also be masked, as these will be invalid - see section 17.7.8 for details of the battery charger interrupts. it is recommended that the battery charger also be disabled in this case - note that the battery charger is enabled by default, including on entry to the off power state. a typical battery charge cycle is illustrated in figure 77. this shows both the trickle charge and fast charge processes. the trickle charge mode is a constant current mode. trickle charging is enabled when the battery voltage falls below a charging threshold voltage; it is disabled when the charge current falls to a programmable ?end of charge? threshold level. fast charging consists of two phases: in the constant current phase, the wm8350 drives a programmable constant current into the battery through the batt pin. during this phase, the battery voltage rises monotonically until the battery reaches the target voltage. when the battery reaches the target voltage, the charger enters the constant voltage phase, in which the wm8350 regulates batt to the target voltage. to achieve this, the wm8350 adjusts the charge current adaptively. the charge current decreases monotonically over time. fast charging is disabled when the current falls to a programmable ?end of charge? threshold level. figure 77 a typical charge cycle 17.7.2 battery charger enable the battery charger is enabled by default when the wm8350 is in the active, hibernate or off states. note that battery charging is only possible when the selected power source is within normal operating limits (see section 7.5) and is more than 100mv higher than the battery voltage. the battery charger can be disabled by setting the chg_ena register bit to ?0?. when the battery charger is enabled, it autonomously checks if the conditions for charging are fulfilled and controls the charging processes accordingly. the status of the battery charger can be read from the chg_active register bit. (note this bit is read-only.) the battery charger can be paused by writing to the chg_pause register bit. this provides a simple option to halt the battery charger and to subsequently restart it without affecting the charge timer or other settings.
production data wm8350 w pd, march 2010, rev 4.2 161 the battery charger target voltage is set by the chg_vsel field, as defined in table 103. address bit label default description r12 (0ch) power mgmt (5) 9 chg_ena 1 chg_ena bit selects battery charger current control 0 = set battery charger current to zero 1 = enable battery charge control protected by security key. r168 (a8h) battery charger control 1 15 r169 (a9h) battery charger control 2 15 chg_active 0 charger status. 0 = battery charging is inactive 1 = battery charging is active (note chg_ena is just a request; the wm8350 determines if the conditions are satisfied for battery charging). 14 chg_pause 0 charger pause: 0 = don't pause the charger 1 = pause charging 5:4 chg_vsel [1:0] 00 battery charge voltage: 00 = 4.05v 01 = 4.1v 10 = 4.15v 11 = 4.2v note: chg_ena can be accessed through r9 or through r168. reading from or writing to either register location has the same effect. table 103 battery charger control 17.7.3 trickle charging trickle charging is enabled by default when the wall (line) or usb pins are selected as the power source. it is autonomously initiated, supervised and terminated by the wm8350, without requiring any intervention by the host processor. by default, trickle charging is initiated when the battery voltage is below the battery charge voltage chg_vsel by more t han 100mv. setting the chg_frc bit allows trickle charging to be initiated at higher battery voltages. the trickle charge current is set by the chg_trickle_sel field, as described in table 104. a choke circuit is provided to enhance the trickle charge current control. this allows the charge current to be modified according to temperature conditions or according to the usb current limit restrictions. if the wm8350 temperature is above 115 c and trickle charge temperature choking is enabled, then charging is interrupted for at least 8 seconds and until the temperature has fallen below the threshold. if trickle charge temperature choking is not enabled, then charging continues. (note that the device shutdown temperature is set at 140 c - this threshold cannot be disabled.) trickle charge temperature choking is controlled by the chg_trickle_temp_choke register bit. if the usb current limit cannot support the charge current demanded by chg_trickle_sel and usb current choking is enabled, then the charge current will be modified, where possible, in order to continue charging. the trickle charge current cannot be controlled dynamically - the only possible charge currents are 50ma or 100ma. therefore, the only form of usb choking in trickle charge mode is for a demanded current of 100ma to be reduced to 50ma. trickle charge usb current choking is controlled by the chg_trickle_usb_choke register bit. the time constant for the charger?s attempts to increase the current after usb choking can be controlled by chg_recovery_t.
wm8350 production data w pd, march 2010, rev 4.2 162 the register control fields for trickle charging are described in table 104. see section 17.7.5 for details of battery charger termination. address bit label default description r168 (a8h) battery charger control 1 9 chg_trickle _temp_chok e 0 enable trickle charge temperature choking 0 = disable 1 = enable protected by security key. 8 chg_trickle _usb_choke 0 enable usb current choking in trickle charge 0 = disable 1 = enable protected by security key. 7 chg_recove r_t 0 time constant adjust for charger choke recovery (step-up): 0 = step-up time constant is 180us (allows faster recovery between processor wakeups) 1 = step-up time constant is >20ms (outside audio band) protected by security key. r169 (a9h) battery charger control 2 6 chg_trickle _sel 0 selects the trickle charge current. 0 = set the trickle charge current to 50ma. 1 = set the trickle charge current to 100ma. protected by security key. r170 (aah) battery charger control 3 7 chg_frc 0 allows trickle-charging to be forced even if the battery voltage is above the default threshold 0 = only trickle-charge if the battery voltage is below chg_vsel - 100mv 1 = always trickle-charge protected by security key. table 104 trickle charging control
production data wm8350 w pd, march 2010, rev 4.2 163 17.7.4 fast charging fast charging provides a faster way to charge the battery. this is only possible under certain conditions. fast charging must be initiated by the system controller, and can never start autonomously. fast charging is normally possible in the active state when the selected power source is wall (line) or when usb high power mode is selected. the battery charger determines whether the conditions for fast charging are satisfied; these conditions include a suitable selected power source voltage (see section 17.7.2) and a suitable battery voltage (greater than 3.1v). if the conditions for fast charging are satisfied, this is indicated by the wm8350 setting the chg_fast_rdy_eint register bit, as described in table 105. providing that the conditions for fast charging are satisfied, then fast charging is enabled by setting the chg_fast bit. if the conditions are not satisfied, then chg_fast will be held at 0. the maximum fast charge current is set by the chg_isel register field, as described in table 105. during fast charging, the current may be dynamically controlled by the wm8350 in order to achieve optimum battery charging. it is recommended that the charge current limit should not be set higher than 400ma when charging from a usb power rail. a throttle circuit is provided to enhance the fast charge current control. this allows the charge current to be modified according to temperature conditions or according to the usb current limit restrictions. if the wm8350 temperature is above 115 c, then charging is interrupted for at least 8 seconds and until the temperature has fallen below the threshold. temperature control of the battery charger is always enabled during fast charging. if the usb current limit is reached during fast charging, then the charge current must be reduced. if usb current throttling is enabled, then the charge current will be controlled dynamically in order to continue charging. if usb current throttling is not enabled, then the charging will be terminated. (note that this may give rise to an erroneous indication of ?end of charge? as the charging may have terminated prematurely.) if usb current throttling is enabled, then ?end of charge? will not be indicated, even if the throttle circuit causes the charger current to fall below the end of charge current threshold. fast charge usb current throttling is controlled by the chg_fast_usb_throttle register bit. the time constant for the charger?s attempts to increase the current after usb throttling can be controlled by chg_throttle_t. the wm8350 will revert to trickle charging if the conditions for fast charging are no longer satisfied. this includes selection of the off or hibernate states, or selection of usb low power mode. the wm8350 will also revert to trickle charging if it detects a low battery voltage condition (see section 17.7.8).
wm8350 production data w pd, march 2010, rev 4.2 164 the register control fields for fast charging are described in table 105. see section 17.7.5 for details of battery charger termination. address bit label default description r25 (15h) interrupt status 1 9 chg_fast_r dy_eint 0 indicates that the charger is ready to go into fast charge. (rising edge triggered) note: this bit is cleared once read. r168 (a8h) battery charger control 1 5 chg_fast 0 enable fast charging. 0 = fast charging cannot take place. 1 = enable fast charging (will not start until valid charging conditions are met). note: this register is held low and can only be written to once the fast charge ready signal has gone high. protected by security key. 4 chg_fast_u sb_throttl e 0 enable usb current throttling in fast charge: 0 = don't do any current throttling when fast charging. 1 = do current throttle while fast charging. protected by security key. r169 (a9h) battery charger control 2 3:0 chg_isel [3:0] 0110 fast charge current limit setting. 0000 = off 0001 = 50ma 0010 = 100ma ? (50ma steps) 1111 = 750ma note: do not set the charger to be more than 400ma when usb powered. protected by security key. r170 (aah) battery charger control 3 6:5 chg_thrott le_t [1:0] 00 time between steps when the charger throttles back due to usb current limit. 00 = 8us 01 = 16us 10 = 32us 11 = 128us protected by security key. table 105 fast charging control
production data wm8350 w pd, march 2010, rev 4.2 165 17.7.5 battery charger timeout and termination fast charging and trickle charging is terminated under any of the following conditions: ? charge current falls below a programmable threshold ? charger timeout ? charger fault condition (see section 17.7.7) the end of charge current threshold can be set between 20ma and 90ma, using the chg_eoc_sel register field, as defined in table 106. care should be taken to ensure that the end of charge threshold is lower than the selected charge current limit (chg_isel and/or chg_trickle_sel). when the end of charge current threshold is reached, the chg_end_eint interrupt field is set (see section 17.7.8). the action taken when the end of charge current threshold occurs is set by chg_end_act. the battery charging will either be terminated or will continue until timeout. when trickle charge choking or fast charge throttling is enabled, it is possible that these circuits may cause the charge current to be reduced below the chg_eoc_sel threshold even though the battery is not fully charged. when choke or throttle control is enabled, the end of charge detection described above is disabled, and charging always continues until timeout. it is recommended that trickle charge choking and fast charge throttling is enabled. the wm8350 battery charger has a programmable timer. the timer is initiated when either fast charging or trickle charging commences. the initial value of the timer may be set by writing to the chg_time register field. this field can also be read back as an indicator of the charge time remaining. note that the readback value of this field is coded differently to the write value. due to the limited resolution provided by the 4-bit field, the readback value is approximate only, to an accuracy of around 30 minutes. if charging is paused by setting chg_pause (see table 103), or is paused due to temperature or maximum current conditions, the charge timer is halted so that the time limit is extended accordingly. if the charging mode is changed by asserting or de-asserting chg_fast, then the timer is reset to its initial value. if the charging mode reverts to trickle charge mode as a result of a change in power source or a change in usb power mode, then the timer is not reset, but continues to count down from its earlier value. (note that the charger will never autonomously switch from trickle charge mode to fast charge mode.) when the charger timer completes, the chg_to_eint interrupt field is set (see section 17.7.8) and charging is terminated. address bit label default description r168 (a8h) battery charger control 1 12:10 chg_eoc_se l [1:0] 000 selects what the end of charge current should be set to 000 = 20ma 001 = 30ma (10ma steps) ... 111 = 90ma protected by security key. 6 chg_end_ac t 0 action to take when charging ends: 0 = set charge current to 0 1 = do nothing (leave charger on till timeout) protected by security key
wm8350 production data w pd, march 2010, rev 4.2 166 address bit label default description r169 (a9h) battery charger control 2 11:8 chg_time [3:0] 1011 writing to his field set the charge timeout duration: 0000 = 60min 0001 = 90min 0010 = 120min 0011 = 150min 0100 = 180min 0101 = 210min 0110 = 240min 0111 = 270min 1000 = 300min 1001 = 330min 1010 = 360min 1011 = 390min 1100 = 420min 1101 = 450min 1110 = 480min 1111 = 510min reading from this field indicates the charge time remaining: time remaining = chg_time * 2048s protected by security key. table 106 battery charger termination 17.7.6 battery charger status the status of the battery charger can be read from the chg_sts register field, as described in table 107. this field indicates whether the charger is active in trickle or fast charge modes. address bit label default description r169 (a9h) battery charger control 2 13:12 chg_sts [1:0] 00 charger status: 00 = charger off, current set to 0. 01 = in trickle charge mode. 10 = in fast charge mode. 11 - reserved table 107 battery charger status in addition to the chg_sts register readback, the charger status can be indicated on an led connected to a gpio pin configured as ch_ind (see section 20). the ch_ind function is an open- drain led output that provides a visible indication of the charger status. charger status ch_ind action charger current set to zero led off trickle charging led blinks slowly (0.5hz) fast charging led blink s quickly (1hz) table 108 battery charger status via ch_ind
production data wm8350 w pd, march 2010, rev 4.2 167 17.7.7 battery fault conditions the wm8350 continuously monitors battery temperature, chip temperature and battery voltage. in case of a fault condition, it autonomously takes appropriate action, and alerts the host processor via the applicable interrupt flags. battery temperature monitoring the wm8350 can monitor the battery temperature via the ntc (negative temperature coefficient) resistor which is incorporated into suitable battery packs. the ntc resistor must be connected to the aux1 pin as shown in section 17.7.1. typical ntc resistor values vary over a range of temperature (source of information is vishay dale?s ?r-t curve 2?). the ntc monitoring circuit is designed to detect temperature conditions outside the typical 0 o c and 45 o c safe battery charging conditions. the wm8350 indicates a cold battery temperature condition is indicated by setting the chg_batt_cold_eint interrupt. a hot battery temperature is indicated by setting the chg_batt_hot_eint interrupt. battery charging is suspended when either of these conditions is set. (note that trickle charging will resume once the battery temperature has returned to within normal levels.) it is possible to disable the ntc detection circuit and associated flags. this option is protected by a security key. the associated register bits are described in table 109. safety warning - the battery temperature sensor is a safety mechanism and it is strongly recommended that it be used, as directed, in all applications requiring charger functionality. disabling this feature by any means, intentional or otherwise, could result in incorrect behaviour of the battery charger function. address bit label default description r168 (a8h) battery charger control 1 3 chg_ntc_m on 1 enable charger battery ntc detection (some batteries may not need this - turn off with caution) 0 = charger ignores no_ntc detection. 1 = charger monitors no_ntc detection. protected by user key, read-only in rom configs. 2 chg_batt_h ot_mon 1 enable charger battery temperature high detection (some batteries may not need this - turn off with caution) 0 = charger ignores battery temperature too high. 1 = charger monitors battery temperature too high. protected by user key, read-only in rom configs. 1 chg_batt_c old_mon 1 enable charger battery temperature low detection (some batteries may not need this - turn off with caution) 0 = charger ignores battery temperature low. 1 = charger monitors battery temperature low. protected by user key, read-only in rom configs. note: some batteries may not require battery temperature monitoring. disable with caution. table 109 battery temperature monitoring
wm8350 production data w pd, march 2010, rev 4.2 168 chip temperature monitoring the wm8350 has a built-in temperature sensor to monitor the silicon die temperature. if the chip temperature reaches the thermal warning level, the wm8350 sets the sys_chip_gt 115_eint (see section 25) and battery charger operation may be paused (this is programmable in trickle charge mode). the charger operation will resume once the chip temperature has dropped below the thermal warning level. if the chip temperature reaches the thermal shutdown level, the wm8350 sets the sys_chip_gt140_eint interrupt and shuts down. (battery charging is always terminated in this case.) battery voltage detection / defective battery detection a low battery voltage is an indicator that the battery may be defective or removed. in trickle charge mode, the battery voltage is checked after 30 minutes of charging, or after a quarter of the charging time chg_time (the larger of these two times applies). if the battery voltage is less than the defective battery threshold (nominal value 2.85v) at this time, then the battery charging stops and the wm8350 sets the chg_batt_fail_eint interrupt as defined in table 110. the battery failure condition is cleared if the battery voltage rises above the defective battery threshold. it is also cleared if any of the wm8350 power sources (including batt) is removed and re- applied, or if the host processor invokes usb suspend mode. when the failure condition is cleared, the charger then reverts back to its initial state, and may re-start if the conditions for charging are fulfilled (see section 17.7.2). if fast charging mode is selected, and the battery voltage is less than the defective battery threshold, then the wm8350 immediately reverts to trickle charging. if the fault persists, then trickle charging stops as described above.
production data wm8350 w pd, march 2010, rev 4.2 169 17.7.8 interrupts and fault protection the battery charger can raise a first-level interrupt, chg_int (see section 24) to report status and fault conditions to the host processor. the chg_int interrupt is the logical or of all the second-level interrupts described in table 110. note: if a battery is connected to the batt pin, but the wm8350 is being powered from the wall or usb supplies, then disconnection of the wall or usb supply will cause the chg_vbatt_lt_3p1_eint and chg_ vbatt_lt_2p 85_eint interrupts to be set. the chg_vbatt_lt_3p1_eint and chg_vbatt_lt_2p85_eint interrupts can be masked by setting the associated mask bits defined in table 110. alternatively, the ext_usb_fb_eint and/or ext_wall_fb_eint interrupts (see section 17.5) can be used to validate the battery undervoltage interrupts - if one of the external feedback interrupts is set at the same time as the battery undervoltage interrupts, then the battery undervoltage interrupts should be ignored. address bit label description r25 (19h) interrupt status 1 15 chg_batt_hot_eint battery temp too hot. (rising edge triggered) note: this bit is cleared once read. 14 chg_batt_cold_eint battery temp too cold. (rising edge triggered) note: this bit is cleared once read. 13 chg_batt_fail_eint battery fail. (rising edge triggered) note: this bit is cleared once read. 12 chg_to_eint charger timeout. (rising edge triggered) note: this bit is cleared once read. 11 chg_end_eint charging final stage. (rising edge triggered) note: this bit is cleared once read. 10 chg_start_eint charging started. (rising edge triggered) note: this bit is cleared once read. 9 chg_fast_rdy_eint indicates that the charger is ready to go into fast charge. (rising edge triggered) note: this bit is cleared once read. 2 chg_vbatt_lt_3p9_eint battery voltage < 3.9 interrupt. (rising edge triggered) note: this bit is cleared once read. 1 chg_vbatt_lt_3p1_eint battery voltage < 3.1 interrupt. (rising edge triggered) note: this bit is cleared once read. 0 chg_vbatt_lt_2p85_ein t battery voltage < 2.85 interrupt. (rising edge triggered) note: this bit is cleared once read. r33 (21h) interrupt status 1 mask 15:0 ?im_? + name of respective bit in r25 (19h) mask bits for battery charger interrupts each of these bits masks the respective bit in r25 when it is set to 1 (e.g. chg_fast_rdy in r25 does not trigger a chg_int interrupt when im_chg_fast_rdy in r33 is set). table 110 battery charger interrupts
wm8350 production data w pd, march 2010, rev 4.2 170 18 system monitoring and undervoltage lockout (uvlo) the wm8350 includes several mechanisms to prevent the system from starting up, or force it to shut down, when power sources are critically low. the under-voltage lockout (uvlo) is a non-programmable voltage limit. when the available supplies are below this limit, the wm8350 enters the backup state. the wm8350 can only proceed from backup to the off state if line is above the uvlo level. whenever the wm8350 is in active, hibernate or off state and line falls below the uvlo level, the wm8350 returns to the backup state. the uvlo limit threshold is equal to vrtc + 50mv. the precise value of vrtc may vary between devices, within the limits defined in the electrical characteristics (see section 7.5). the startup threshold is a programmable voltage limit. the wm8350 can only proceed from off to the active state if line is above the startup threshold. (note that, in the case of usb-powered operation, there are additional requirements; see section 17.4). the startup threshold is determined by the pccmp_on_thr register field. the shutdown threshold is determined by the pccmp_off_thr register field. when line falls below this threshold, the wm8350 raises a sys_hyst_comp_fail_eint interrupt. in addition, the wm8350 takes the action set by pccomp_erract. if this bit is set, then the wm8350 will shut down in response to the line voltage falling below the shutdown threshold. the startup and shutdown control register fields are described in table 111. note that the startup threshold should always be set higher than the shutdown threshold in order to create a hysteresis, making the system more stable. the sys_hyst_comp_fail_eint interrupt is one of the second-level interrupts which triggers a first-level system interrupt, sys_int (see section 24). this can be masked by setting the mask bit as described in table 112. address bit label default description r179 (b3h) power check comparator 14 pccmp_erra ct 0 action to take when line falls below pccmp_off_thr level (as well as generating an interrupt) 0 = ignore 1 = shut down system 6:4 pccmp_off_t hr [2:0] 010 power check comparator system shutdown threshold value 000 = 2.9v 001 = 3.0v ? 111 = 3.6v protected by security key. 2:0 pccmp_on_th r [2:0] 101 power check comparator system startup threshold value 000 = 2.9v 001 = 3.0v ? 111 = 3.6v protected by security key. table 111 battery monitoring and uvlo control
production data wm8350 w pd, march 2010, rev 4.2 171 address bit label description r26 (1ah) interrupt status 2 3 sys_hyst_comp_fail_ eint hysteresis comparator indication that line or batt is less that shutdown threshold. (rising edge triggered) note: this bit is cleared once read. r34 (22h) interrupt status 2 mask 3 im_sys_hyst_comp_fai l_eint mask bit for hysteresis comparator interrupt when set to 1, im_sys_hyst_comp_fail_eint masks sys_hyst_comp_fail_eint in r29 and does not trigger an sys_int interrupt when sys_hyst_comp_fail_eint is set). table 112 battery monitoring and uvlo interrupts
wm8350 production data w pd, march 2010, rev 4.2 172 19 auxiliary adc 19.1 general description the wm8350 incorporates a low-power 12-bit auxiliary adc (auxadc). this can be used to measure a number of internal or external voltages, with either vref or vrtc as its reference. a programmable potential divider enables the auxadc to measure voltages higher than the reference. note that the aux1 pin is also the input for the battery pack temperature monitoring circuit and is therefore not freely available for other analogue inputs. the battery ntc input can still be sampled and readback via aux1 in the same way as the other auxadc inputs. the aux1 pin may be used for other purposes if the ntc detection is disabled and/or the associated battery charger interrupts are masked. see section 17.7 for details of the battery pack ntc functions. the auxadc circuit is illustrated in figure 78. figure 78 auxiliary adc the auxadc is enabled using the auxadc_ena register bit as described in table 113. address bit label default description r12 (0ch) power mgmt (5) 7 auxadc_ena 0 auxadc control 0 = disabled 1 = enabled r144 (90h) digitizer control (1) 15 note: auxadc_ena can be accessed through r12 or through r144. reading from or writing to either register location has the same effect. table 113 auxadc enable
production data wm8350 w pd, march 2010, rev 4.2 173 19.2 initiating auxadc measurements the auxadc can measure voltages on four external pins, aux1, aux2, aux3 and aux4. it can also measure voltages on the usb, line and batt pins, and also the temperature sensor level. each of these 8 inputs can be independently selected or deselected as an auxadc input. whenever the auxadc is triggered, the auxadc performs a measurement of each of the selected auxadc inputs. by default, none of the auxadc inputs is selected. therefore, the required inputs must be enabled using the auxadc_sel n bits prior to initiating an auxadc measurement. auxadc measurements can be scheduled in a number of different ways, as determined by the auxadc_ctc register bit. in polling mode, a set of measurements is initiated by writing a logic ?1? to the auxadc_poll bit. (this bit is then automatically reset once the measurements have been completed.) in continuous mode, the wm8350 initiates a set of measurements at a time interval that is determined by the auxadc_crate field. additional control can be provided using a gpio pin configured as a ?mask? input (see section 20). the behaviour of the m ask i nput is selected using the auxadc_maskmode register field - it can be used to inhibit any measurements triggered by the polling or continuous modes, or else it can be used as a hardware input to initiate a set of measurements. note that, when auxadc_maskmode = 11, then auxadc_ctc, auxadc_poll and auxadc_crate have no effect. the polarity of the mask input can be adjusted to be active high or active low using the gp n _cfg bits defined in section 20, where ?n? identifies the particular gpio pin in use. the control fields associated with initiating auxadc measurements are defined in table 114. address bit label default description r144 (90h) digitiser control (1) 14 auxadc_ctc 0 continuous conversion mode: 0 = polling mode 1 = continuous mode 13 auxadc_poll 0 writing ?1? initiates a set of measurements in polling mode (auxadc_ctc=0). this bit is automatically reset after the measurements are completed. 7 auxadc_sel8 0 auxadc temp input select 0 = disable temp measurement 1 = enable temp measurement 6 auxadc_sel7 0 auxadc batt input select 0 = disable batt measurement 1 = enable batt measurement 5 auxadc_sel6 0 auxadc line input select 0 = disable line measurement 1 = enable line measurement 4 auxadc_sel5 0 auxadc usb input select 0 = disable usb measurement 1 = enable usb measurement 3 auxadc_sel4 0 auxadc aux4 input select 0 = disable aux4 measurement 1 = enable aux4 measurement 2 auxadc_sel3 0 auxadc aux3 input select 0 = disable aux3 measurement 1 = enable aux3 measurement 1 auxadc_sel2 0 auxadc aux2 input select 0 = disable aux2 measurement 1 = enable aux2 measurement 0 auxadc_sel1 0 auxadc aux1 input select 0 = disable aux1 measurement 1 = enable aux1 measurement
wm8350 production data w pd, march 2010, rev 4.2 174 address bit label default description r145 (91h) digitiser control (2) 13:12 auxadc_mask mode [1:0] 00 auxadc mask input control 00 = mask is ignored 01 = when m ask is asserted, all auxadc measurements are inhibited. 10 = reserved 11 = mask input initiates auxadc measurements. auxadc_poll and auxadc_ctc have no effect. mask polarity is controlled by gp n _cfg. 10:8 auxadc_crat e [2:0] 000 auxadc measurement frequency in continuous mode 000 = 1hz 001 = 4hz 010 = 8hz 011 = 16hz 100 = 32hz 101 = 64hz 110 = 128hz 111 = 256hz table 114 initiating auxadc measurements in polling mode, setting auxadc_poll = 1 initiates one set of measurements, after which the auxadc waits for a new trigger. in continuous mode, a set of measurements will be initiated at the frequency set by auxadc_crate. when using mask to initiate measurements (auxadc_maskmode=11), a rising edge (if gp n _cfg = 1) or a falling edge (if gp n _cfg = 0) initiates one set of auxadc measurements. the mask signal must be asserted for long enough for the auxadc to perform all the selected measurements. the auxadc_sel n bits should not be changed until all previous measurement results stored in the aux n readback registers have been read.
production data wm8350 w pd, march 2010, rev 4.2 175 19.3 voltage scaling and references for inputs aux1, aux2, aux3 and aux4, the auxadc measurements may be referenced to either vrtc or vref (see section 21). the selected reference can be selected independently for each input, using the control fields described in table 115. in the case of usb, batt, line and temperature, the auxadc measurements are referenced to vrtc. in the case of auxadc measurements which are referenced to vref, a buffered copy of vref is used as an input to the auxadc. setting the auxadc_rbmode field allows this buffer to be enabled at all times when the auxadc is enabled, or else to only be enabled when a vref- referenced measurement is made. in order to measure voltages that may be higher than vrtc or vref, a programmable divider is provided on each of aux1, aux2, aux3 and aux4. these are controlled using the auxadc_scale n bits, allowing the inputs to be divided by 1, 2 or 4. in the case of usb, batt and line, a fixed ?divide by 2? applies. address bit label default description r152 (98h) aux1 r153 (99h) aux2 r154 (9ah) aux3 r155 (9bh) aux4 14:13 auxadc_scal e n [1:0] 11 aux n input select 00 = off 01 = input divided by 1 10 = input divided by 2 11 = input divided by 4 12 auxadc_ref n 1 aux n reference select 0 = aux n measured relative to vrtc 1 = aux n measured relative to vref r145 (91h) digitizer control (2) 1 auxadc_rbm ode 1 enable for auxadc bandgap (vref) buffer. 0 = auxadc refbuf is only enabled during conversions that use the vref as a reference 1 = auxadc refbuf is always enabled when the auxadc is enabled table 115 auxadc reference selection
wm8350 production data w pd, march 2010, rev 4.2 176 19.4 auxadc readback measured data from the auxadc can be accessed by reading registers r152 through to r159, as defined in table 116. this data may be read at any time, or may be read in response to the wm8350 indicating that new data is available. the wm8350 indicates that new auxadc data is available by setting the aux_datardy_eint interrupt flag as described in section 19.7. this is one of five second-level interrupts which triggers a first-level system interrupt, auxadc_int (see section 24). this interrupt can be masked by setting the mask bit as described in table 119. the aux_datardy_eint interrupt is set high when new data is available. it is reset when the associated interrupt register r26 is read. the wm8350 can also indicate that new auxadc data is available via a gpio pin configured as ada (aux data available). this flag is set high when new data is available. it is reset when the associated data has been read from the readback registers r152 through to r159. see section 20 for details of how to configure a gpio pin as ada. to avoid losing data that has not yet been read, the wm8350 can inhibit overwriting the measurement registers with new data until the previous data has been read. when the auxadc_wait bit is set, then auxadc measurements are prevented from being overwritten until they have been read. any poll, continuous or mask-triggered auxadc measurement will be ignored if the auxadc_wait feature prevents the measurement from being overwritten. always specify the address of the starting register. single data read from last register is not supported. reading from registers r152 to r159 returns a 12-bit code which represents the most recent auxadc measurement on the associated channel. this code can be equated to the actual voltage (or temperature) according to the following equations: to calculate the voltage for external measurements on the aux input pins use the following formula: auxn = (output code / 4095) x reference voltage x aux input scale to calculate the voltage for internal auxadc measurements on usb, line and battery: usb, line & batt = (output code / 4095) x vrtc x 2 to calculate the temperature (in degrees celsius) from auxadc measurements on temp: temperature = 460.32 - ((output code / 4095) x vrtc x 614.6) where- output code = the relevant auxadc_data field, decoded as an unsigned integer reference voltage = vrtc voltage or vref voltage, depending on auxadc_ref n aux input scale = 1, 2 or 4, depending on auxadc_scale n [1:0] in a typical application, the aux1 input is the battery pack temperature sensing (ntc) input. the voltage at this input may be used as an indicator of the battery pack temperature. the ntc input should be measured relative to the vrtc voltage. the hot temperature threshold (chg_batt_hot_eint) corresponds to 0.33 x vrtc. this equates to approximately +45c. the cold temperature threshold (chg_batt_cold_eint) corresponds to 0.74 x vrtc. this equates to approximately 0c.
production data wm8350 w pd, march 2010, rev 4.2 177 address bit label default description r152 (98h) aux1 r153 (99h) aux2 r154 (9ah) aux3 r155 (9bh) aux4 11:0 auxadc_data n [11:0] 000h measured auxn data value relative to reference: 000 = 0v fff = measured voltage after divide matches reference r156 (9ch) usb voltage readback 11:0 auxadc_data_ usb [11:0] 0h measured usb voltage data value. r157 (9dh) line voltage readback 11:0 auxadc_data_ line [11:0] 0h measured line voltage data value r158 (9eh) batt voltage readback 11:0 auxadc_data_ batt [11:0] 0h measured battery voltage r159 (9fh) chip temperature readback 11:0 auxadc_data_ chiptemp [11:0] 0h measured internal chip temperature r145 (91h) digitizer control (2) 0 auxadc_wait 0 whether the old data must be read before new conversions can be made 0 = no effect (new conversions overwrite old) 1 = new conversions are held back (and measurements delayed) until aux_datan has been read. table 116 reading auxadc measurements in a typical application, one of the following methods is likely to be used to control the auxadc readback: for interrupt-driven auxadc readback, the host processor would read the auxadc data registers in response to the auxadc interrupt or ada output. in continuous auxadc mode, the processor should complete this action before the next measurement occurs, in order to avoid losing any auxadc samples. in polling mode, the interrupt (or ada) signal provides confirmation that the commanded set of measurements has been completed. for host-controlled auxadc readback, the continuous auxadc mode would be used, and the auxadc_wait bit would be asserted. the host processor would read the auxadc data registers periodically, causing the next auxadc measurement to be enabled. this limits the frequency of the auxadc measurements to the readback frequency.
wm8350 production data w pd, march 2010, rev 4.2 178 19.5 calibration the on-chip reference vref provides a highly accurate reference voltage to the auxadc. for best measurement accuracy, the wm8350 provides a way to determine the voltage offset of the auxadc?s vref buffer and the gain error introduced by scaling the auxadc input. measured data can then be adjusted accordingly, eliminating these errors. to determine the buffer?s offset, the auxadc aux3 input is disconnected from the aux3 pin and connected to the unbuffered vref voltage. note that input scaling must be used, (i.e. auxadc_scale3 = 10 or 11), in order to ensure that the auxadc input is within the measurable range. measuring this voltage using the buffered vref as the reference (auxadc_ref3 = 1) makes it possible to calculate the combined error. address bit label default description r145 (91h) digitizer control (2) 2 auxadc_cal 0 configure aux3 input to be the vref supply for auxadc calibration. 0 = aux3 input connected to aux3 pin 1 = aux3 input connected to unbuffered vref table 117 auxadc calibration
production data wm8350 w pd, march 2010, rev 4.2 179 19.6 digital comparators the wm8350 has four digital comparators which may be used to compare auxadc measurement data against programmable threshold values. each comparator has an associated interrupt flag, as described in section 19.7, which indicates that the associated data is beyond the threshold value. the digital comparators are enabled using the dcmpn_ena register bits as described in table 118. the source data for each comparator is selected using the dcmp n _srcsel register bits; this selects one of the eight auxadc channels for each comparator. note that, if required, the same auxadc channel may be selected for more than one comparator; this would allow more than one threshold to be monitored on the same auxadc channel. the dcmp n _gt register bits select whether an interrupt will be indicated when the measured value is above the threshold or when the measured value is below the threshold. the threshold dcmp n _thr is a 12-bit code for each comparator. this field follows the same voltage scaling and voltage reference as the associated auxadc channel source. address bit label default description r12 (0ch) power mgmt (5) or r163 (a3h) generic comparator control 3 dcmp4_ena 0 digital comparator 4 enable 0 = disabled 1 = enabled 2 dcmp3_ena 0 digital comparator 3 enable 0 = disabled 1 = enabled 1 dcmp2_ena 0 digital comparator 2 enable 0 = disabled 1 = enabled 0 dcmp1_ena 0 digital comparator 1 enable 0 = disabled 1 = enabled r164 (a4h) generic comparator 1 r165 (a5h) generic comparator 2 r166 (a6h) generic comparator 3 r167 (a7h) generic comparator 4 15:13 dcmp n _srcs el [2:0] 000 dcomp n source select. 000 = aux1 001 = aux2 010 = aux3 011 = aux4 100 = usb 101 = line 110 = batt 111 = temp 12 dcmp n _gt 0 dcomp n interrupt control 0 = interrupt when the source is less than threshold 1 = interrupt when the source is greater than threshold 11:0 dcmp n _thr [11:0] 000h dcomp n threshold (12-bit unsigned binary number) note: n is a number between 1 and 4 that identifies the individual comparator note: the comparator enable bits can each be accessed through two separate control registers. reading from or writing to either register location has the same effect. table 118 auxadc digital comparator control
wm8350 production data w pd, march 2010, rev 4.2 180 19.7 auxadc interrupts the auxadc has five second-level interrupts which can trigger a first-level system interrupt, auxadc_int (see section 24). these are described in table 119. each auxadc interrupt in register r26 can be masked by setting the associated mask bit in register r34. the aux_datardy_eint interrupt indicates that new auxadc data is ready. this bit is cleared when register r26 is read. note that this bit is not cleared by reading the measured auxadc data in registers r152 to r159. the auxadc_dcomp n _eint interrupts indicate that the selected auxadc channel on comparator ?n? is beyond the programmed threshold. the dcmp n _gt register bits defined in table 118 select whether an interrupt indicates the measured value is above the threshold or indicates the measured value is below the threshold. address bit label description r26 (1ah) interrupt status 2 8 auxadc_datardy_eint auxiliary data ready. (rising edge triggered) note: this bit is cleared once read. 7 auxadc_dcomp4_eint dcomp4 interrupt. (rising edge triggered) note: this bit is cleared once read. 6 auxadc_dcomp3_eint dcomp3 interrupt. (rising edge triggered) note: this bit is cleared once read. 5 auxadc_dcomp2_eint dcomp2 interrupt. (rising edge triggered) note: this bit is cleared once read. 4 auxadc_dcomp1_eint dcomp1 interrupt. (rising edge triggered) note: this bit is cleared once read. r34 (22h) interrupt status 2 mask 8:4 ?im_? + name of respective bit in r26 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. table 119 auxadc interrupts
production data wm8350 w pd, march 2010, rev 4.2 181 20 general purpose inputs / outputs (gpio) 20.1 general description the wm8350 has thirteen general-purpose input/output (gpio) pins; gpio0 - gpio12. these can be configured as inputs or outputs, active high or active low, with optional on-chip pull-up or pull- down resistors. alternate functions are also available for each gpio pin. note that different gpio pins are supported on different power domains. the applicable power domain is specific to a pin, not to a particular gpio function. the power domains are as follows: ? gpio0 to gpio3 : vrtc ? gpio4 to gpio9 : dbvdd ? gpio10 to gpio12 : line figure 79 gpio equivalent circuit
wm8350 production data w pd, march 2010, rev 4.2 182 20.1.1 configuring gpio pins to configure a pin as a gpio, the corresponding gp n _fn register bits must be set to 0000 (see table 124). each gpio pin can be set up as an input or as an output through the corresponding gp n_ dir register bits. note that, when changing gp n _dir, it is recommended to set gp n _fn = 0000 first. see section 20.2.2 for the recommended sequence of commands when updating the gpio pin function. the state of a gpio output is determined by writing to the corresponding gp n _lvl register bit. for gpio inputs, reading the gp n_ lvl bit returns the logic level at the gpio pin. the polarity of gpio inputs can be selected through the corresponding gp n _cfg bit. for gpio outputs, the gp n _cfg bit controls the electrical characteristics of the output pin. gpio inputs can also generate an interrupt (see section 20.1.3). the gp n _intmode selects whether an interrupt occurs on a rising edge only, or else on both rising and falling edges. the input to this function is influenced by the polarity bit gp n _cfg described above. address bit label default description r129 (81h) gpio pull-up 12:0 gp n _pu [12:0] dependant on config settings gpio n pull-up 0 = normal 1 = pull-up enabled only valid when gpio n is set to input. do not select pull-up and pull- down at the same time. (see note) r130 (82h) gpio pull-down 12:0 gp n _pd [12:0] dependant on config settings gpio n pull-down 0 = normal 1 = pull-down enabled only valid when gpio n is set to input. do not select pull-up and pull- down at the same time. (see note) r131 (83h) gpio interrupt mode 12:0 gp n _intmode [12:0] 0 gpio n pin mode: 0 = gpio interrupt is rising edge triggered and taken after the effect of gp n _cfg register bit 1 = gpio interrupt is both rising and falling edge triggered r134 (86h) gpio pin configuration 12:0 gp n _dir [12:0] dependant on config settings gpio n pin direction 0 = output 1 = input r135 (87h) gpio pin polarity / type 12:0 gp n _cfg [12:0] dependant on config settings selects input polarity /output type for gpio n input (gp n_ dir=1) output (gp n_ dir=0) 0 = active low 1 = active high (see note) 0 = cmos 1 = open-drain (see note) r230 (e6h) gpio pin status 12:0 gp n _lvl [12:0] n/a logic level of gpio n pin input (gp n_ dir=1) output (gp n_ dir=0) read gp n_ lvl to check logic level. writing ?0? clears gp n _eint write to gp n _lvl to change logic level. note: n is a number between 0 and 12 that identifies the individual gpio. table 120 configuring the gpio pins note: the gpio input functions /mr, /wakeup and /ldo_ena behave differently to other gpio inputs. these functions are active low by default, when gp n _cfg = 1. these functions may be changed to active high by setting gp n _cfg = 0.
production data wm8350 w pd, march 2010, rev 4.2 183 note: if a gpio pin is configured as an open drain output, (ie. gp n _dir=0, gp n _cfg=1), then the external pull-up voltage must not be greater than the supply domain for the corresponding gpio. for example, if the gpio supply domain is dbvdd then the external pull-up voltage must be less than or equal to dbvdd. note: do not enable pull-up and pull-down resistors for the same gpio pin. note: the internal pull-up and pull-down on gpio10 , gpio11 and gpio12 may be too weak for many applications. if pull-up or pull-down is required on these pins, it is recommended to ensure that the pull resistance is <100k . this can be achieved using an external resistor on its own or in combination with the internal resistance. 20.1.2 input de-bounce gpio inputs have an optional de-bounce function to remove glitches from the input signal. this may be useful when the gpio is connected to a mechanical switch. the de-bounce function can be enabled for each pin individually using gp n _db, with a globally selectable de-bounce time set by gp_dbtime. gpio alternative functions pwr_on, pwr_off and /w akeup are special cases with r egard to debouncing. pwr_on and /w akeup have a debounce time of gp_dbtime[1:0] + 40ms and pwr_off has a debounce time of gp_dbtime[1:0] + 5ms. address bit label default description r128 (80h) gpio de- bounce 12:0 gp n _db [12:0] 1 gpio n debounce 0 = gpio is not debounced. 1 = gpio is debounced (time from gp_dbtime[1:0]) r133 (85h) gpio control 7:6 gp_dbtime [1:0] 00 de-bounce time for all gpio inputs 00 = 64 s 01 = 0.5ms 10 = 1ms 11 = 4ms note: pwr_on, pwr_off and /wakeup have additional debounce times. note: n is a number between 0 and 12 that identifies the individual gpio. table 121 configuring gpio de-bounce 20.1.3 gpio interrupts the gpio logic can raise a first-level interrupt, gpio_int (see section 24). this interrupt is the logical or of the second-level gpio interrupts described in table 122. address bit label description r30 (1eh) gpio interrupt status 12:0 gp n _eint [12:0] gpio n interrupt. (trigger controlled by gp n registers.) note: this bit is cleared once read. r38 (26h) gpio interrupt mask 12:0 ?im_? + name of respective bit in r30 mask bits for gpio interrupts each of these bits masks the respective bit in r30 when it is set to 1 (e.g. gp n _eint in r30 does not trigger a gpio_int interrupt when im_gp n _eint in r38 is set). note: n is a number between 0 and 12 that identifies the individual gpio. table 122 gpio interrupts
wm8350 production data w pd, march 2010, rev 4.2 184 20.2 gpio alternate functions 20.2.1 list of alternate functions the following alternate functions are available. alternate function name input / output description adclrclk input alternate left/right clock for codec adc digital interface. when this function is selected, the lrclk pin supports the dac interface only, and gpio5 provides the adc digital interface l/r clock. see section 12. adcbclk input alternate bclk for codec adc digital interface. when this function is selected, the bclk pin supports the dac interface only, and gpio6 or gpio8 provides the adc digital interface bclk signal. see section 12. chip_reset input logic input to reset the chip. when this input is asserted, the chip performs a full reset and re-starts in accordance with the current config mode settings. note that chip_reset_ena in register r3 should be set to 1 when using chip_r eset as alternative gpio function. csb input 3-/4-wire control interface chip select pin (csb). note that this function is selected automatically on gpio7 when 3-/4- wire mode is selected, ie. regardless of the gp7_fn control field. see section 11. flash input hardware trigger for flash function on isinka or isinkb. this function is rising edge triggered. the current sink must be in flash mode, and with the trigger set to gpio. see section 16. hibernate (level) input logic input to place the chip into hibernate. the behaviour of some components of the wm8350 in hibernate mode is configurable. see section 14. this ?level triggered? input is deemed to be asserted for as long as it is logic 1 (or logic 0 if the polarity is inverted). hibernate (edge) input logic input to place the chip into hibernate. the behaviour of some components of the wm8350 in hibernate mode is configurable. see section 14. when the ?edge triggered? input is used, hibernate is selected when a rising edge occurs (or a falling edge if the polarity is inverted). after hibernate has been selected by this method, a ?startup? event (see section 14.3.1) is required to exit from hibernate. heartbeat i nput input to watchdog function, rising edge triggered. see section 23. /ldo_ena input enable signal for ldo1. see section 14.7.4. l_pwr1 input logic input used to place dc-dc converters or ldos into a low power state. see section 14. l_pwr2 input logic input used to place dc-dc converters or ldos into a low power state. see section 14. l_pwr3 input logic input used to place dc-dc converters or ldos into a low power state. see section 14. mask input mask input to auxadc. this input may be used either to block all inputs to the auxadc, or to initiate a-d conversions. see section 19. /mr input logic input used to drive the /rst pin and the /rst and /memrst (gpio outputs) low. note that this input has no other effect on internal circuits. see section 14. pwr_off input logic input signal causes a controlled shutdown of the wm8350. see section 14. pwr_on input power on input signal from processor (input switching threshold 1.0v). see section 14.
production data wm8350 w pd, march 2010, rev 4.2 185 alternate function name input / output description /wakeup i nput logic input signal causes wakeup from off or hibernate states. can be used for accessory detection. see section 14. 32khz input 32khz clock input to real time clock. see section 22. ada output aux adc external data available signal. see section 19. 0 = auxadc external data not available 1 = auxadc external data available adclrclk output alternate left/right clock for codec adc digital interface. when this function is selected, the lrclk pin supports the dac interface only, and gpio5 provides the adc digital interface l/r clock. see section 12. adclrclkb output inverted left/right clock for codec adc digital interface. when this function is selected, the lrclk pin supports the dac interface only, and gpio6 provides the inverted adc digital interface l/r clock. see section 12. adcbclk output alternate bclk for codec adc digital interface. when this function is selected, the bclk pin supports the dac interface only, and gpio8 provides the adc digital interface bclk signal. see section 12. /batt_fault output same as /uvlo signal ? indicates no power present. should be output as soon as possible after /uvlo. ch_ind output battery charge status indication. this output can drive an led, which indicates battery charging status through different flash rates. see section 17. codec_opclk output output clock from codec. frequency is determined by opclk_div. see section 12. do_conf output output used for development mode programming. signal goes high to indicate that external programming can take place (during the pre-active state). same functionality as pwr_on (gpio output) but with additional programmable option to prevent reset in off mode. see section 14. flash_out output logic output asserted for the duration of a flash. triggered by either sinka or sinkb; triggered by gpio or csn_flash bit. see section 16. fll_clk output output fll clock. see section 12.4. isinkc output open-drain output which can be used to drive leds connected to line via a series resistor. see section 16. isinkd output open-drain output which can be used to drive leds connected to line via a series resistor. see section 16. isinke output open-drain output which can be used to drive leds connected to line via a series resistor. see section 16. line_sw output used to drive an external pfet between ?wall? supply and line input, in order to prevent reverse conduction when the wall adapter is disconnected. see section 17.1. line_gt_batt output output to enable external pfet to reduce ir loses when line is greater than batt micdet output logic output indicating microphone bias current detection. 0 = mic bias current not detected 1 = mic bias current detected note that an interrupt is also generated by this event. see section 13.12.2. micsht output logic output indicating microphone bias short circuit detection. 0 = mic bias short circuit not detected 1 = mic bias short circuit detected note that an interrupt is also generated by this event. see section 13.12.2.
wm8350 production data w pd, march 2010, rev 4.2 186 alternate function name input / output description /memrst output output used to control other subsystems such as external memory. signal goes low to reset external memory. the status of this signal in the hibernate state is configurable, allowing external memory contents to be retained in hibernate. see section 14. p_clk output 1mhz output clock in phase with the internal dc-dc converters. this signal can be used to sync external circuits (e.g. dc-dcs). por_b output output which toggles low to high during power-on reset pwr_on output output used to indicate that device is powered on (eg. to enable external dc-dc converters). this output is disabled in the off state. /rst output output used to indicate system resets. signal goes low during reset, same as the /rst pin. the pulse duration is programmable. see section 14. rtc output real time clock output - frequency is controlled by rtc_dsw[3:0]. see section 22. sdout output 4-wire control interface data output pin (sdout). note that this function is selected automatically on gpio6 when 4-wire mode is selected, ie. regardless of the gp6_fn control field. see section 11. /vcc_fault output indicates a fault condition on selectable dc converters, ldo regulators and the limit switch. the mask bits in register 215 determine which supplies contribute to this status flag. see section 14.6.5, section 14.7.3 and section 15.2.3. vrtc output output from on-chip backup power source voltage regulator vrtc. 32khz output 32khz clock output from the real time clock oscillator. table 123 list of gpio alternate functions
production data wm8350 w pd, march 2010, rev 4.2 187 20.2.2 selecting gpio alternate functions the function of each gpio pin is programmable by writing to the respective gp n register bits. gp n _fn = 0000 selects the gpio function and settings other than 0000 select various alternate functions. the gpio function is also determined by the value of the gp n _dir register bit. note that, when changing gp n _dir, it is recommended to set gp n _fn = 0000 first. when changing the function of a gpio pin, (updating gpn_fn or gpn_dir), it is recommended that the following sequence of actions is taken sequentially. ? set gpn_fn = 0000 ? update the other gpio configuration fields gp n _db, gp n _pu, gp n _pd, gp n _cfg, gp n _dir ? if the new function is an input, ensure that the input trigger is in the inactive state (ie. logic 0 for a function that is active high) ? set gpn_fn according to the new gpio function ? read the gpio interrupt status register r30 (1eh) to clear any gpio interrupt events ? if any bit in register r30 (1eh) was set when read, then read the system interrupts register r24 (18h) to clear the irq pin note that gpio7 is automatically enabled as csb in 3-wire and 4-wire control modes. gpio6 is automatically enabled as sdout in 4-wire control mode. these automatic selections take precedence over all other gpio6 and gpio7 control fields. address bit label default description r140 (8ch gpio function select 1 3:0 gp0_fn dependan t on config settings selects function of gpio0 7:4 gp1_fn selects function of gpio1 11:8 gp2_fn selects function of gpio2 15:12 gp3_fn selects function of gpio3 r141 (8dh) gpio function select 2 3:0 gp4_fn selects function of gpio4 7:4 gp5_fn selects function of gpio5 11:8 gp6_fn selects function of gpio6 15:12 gp7_fn selects function of gpio7 r142 (8eh) gpio function select 3 3:0 gp8_fn selects function of gpio8 7:4 gp9_fn selects function of gpio9 11:8 gp10_fn selects function of gpio10 15:12 gp11_fn selects function of gpio11 r143 (8fh) 3:0 gp12_fn selects function of gpio12 table 124 control registers to select gpio alternate functions
wm8350 production data w pd, march 2010, rev 4.2 188 address bit label default description r140 (8ch gpio function select 1 3:0 gp0_fn [3:0] dependant on config settings gpio0 function definition input (gp n _dir=1) output (gp n _dir=0) 0000 gpio gpio 0001 pwr_on pwr_on 0010 /ldo_ena vrtc 0011 l_pwr1 por_b 0100 pwr_off /rst 0101 chip_reset 7:4 gp1_fn [3:0] dependant on config settings gpio1 function definition input output 0000 gpio gpio 0001 pwr_on do_conf 0010 /ldo_ena /rst 0011 l_pwr2 /memrst 0100 /wakeup 32khz 11:8 gp2_fn [3:0] dependant on config settings gpio2 function definition input output 0000 gpio gpio 0001 pwr_on pwr_on 0010 /wakeup vrtc 0011 32khz 32khz 0100 l_pwr3 /rst 15:1 2 gp3_fn [3:0] dependant on config settings gpio3 function definition input output 0000 gpio gpio 0001 pwr_on p_clk 0010 /ldo_ena vrtc 0011 pwr_off 32khz 0100 flash /memrst note : undocumented combinations for gp n _fn (n = 0 to 3) are reserved table 125 gpio function select 1
production data wm8350 w pd, march 2010, rev 4.2 189 address bit label default description r141(8dh) gpio function select 2 3:0 gp4_fn [3:0] dependant on config settings gpio4 function definition input (gp n _dir=1) output (gp n _dir=0) 0000 gpio gpio 0001 /mr /memrst 0010 flash ada 0011 hibernate (level) flash_out 0100 mask /vcc_fault 0101 chip_reset micsht 1010 micdet 7:4 gp5_fn [3:0] dependant on config settings gpio5 function definition input output 0000 gpio gpio 0001 l_pwr1 p_clk 0010 adclrclk adclrclk 0011 hibernate (edge) 32khz 0100 pwr_off /batt_fault 0101 hibernate (level) micsht 0110 - ada 0111 - codec_opclk 1010 - micdet 11:8 gp6_fn [3:0] dependant on config settings gpio6 function definition input output 0000 gpio gpio 0001 l_pwr2 /memrst 0010 flash ada 0011 hibernate (edge) rtc 0100 hibernate (level) micdet 0101 - micsht 0110 - adclrclkb 15:1 2 gp7_fn [3:0] dependant on config settings gpio7 function definition input output 0000 gpio gpio 0001 l_pwr3 p_clk 0010 mask /vccfault 0011 hibernate (level) /batt_fault 0100 - micdet 0101 - micsht 0110 - ada 1100 - fll_clk note: undocumented combinations for gp n _fn (n = 4 to 7) are reserved table 126 gpio function select 2
wm8350 production data w pd, march 2010, rev 4.2 190 address bit label default description r142 (8eh) gpio function select 3 3:0 gp8_fn [3:0] dependant on config settings gpio8 function definition input (gp n _dir=1) output (gp n _dir=0) 0000 gpio gpio 0001 /mr /vcc_fault 0010 adcbclk adcbclk 0011 pwr_off /batt_fault 0100 hibernate (edge) /rst 7:4 gp9_fn [3:0] dependant on config settings gpio9 function definition input output 0000 gpio gpio 0001 heart beat /vcc_fault 0010 mask line_gt_batt 0011 pwr_off /batt_fault 0100 hibernate (level) /memrst 11:8 gp10_f n [3:0] dependant on config settings gpio10 function definition input output 0000 gpio gpio 0001 - isinkc 0010 - line_gt_batt 0011 pwr_off ch_ind 15:1 2 gp11_f n [3:0] dependant on config settings gpio11 function definition input output 0000 gpio gpio 0001 - isinkd 0010 /wakeup line_gt_batt 0011 - ch_ind note: undocumented combinations for gpn_fn (n = 8 to 11) are reserved table 127 gpio function select 3 address bit label default description r143 (8fh) gpio function select 4 3:0 gp12_f n [3:0] dependant on config settings gpio 12 function definition input (gp n _dir=1) output (gp n _dir=0) 0000 gpio gpio 0001 chip_reset isinke 0010 - line_gt_batt 0011 - line_sw 0100 - 32khz note: undocumented combinations are reserved table 128 gpio function select 4
production data wm8350 w pd, march 2010, rev 4.2 191 21 voltage references the wm8350 generates several reference voltages used for different purposes. the main reference voltage vref, and additional internal references derived from it, are used in the dc-dc converters, the ldo regulators and the auxiliary adc. vref is highly stable, accurate, and independent of the supply voltage. it can be trimmed for improved accuracy. the vrtc regulator (see section 17.6) uses a separate, low-power reference at start-up. the mid-rail reference vmid is used in the audio codec. it is generated from avdd. each reference voltage is internally provided to those parts of the wm8350 where it is needed. 21.1 main reference (vref) the main reference generates a highly accurate reference voltage vref. it requires a decoupling capacitor on the cref pin; a 2.2uf x5r capacitor is recommended, as noted in section 29.2; and an accurate resistor on the rref pin; a 100k (1%) resistor is recommended, as noted in section 29.2. the wm8350 will malfunction if those components are omitted. the accuracy of supply voltages generated by the wm8350 depends on vref, and can be improved by trimming. this scales vref by up to +15/-16% in 1% steps, to compensate for deviations from the nominal value. the main reference can be overdriven with an externally generated reference voltage, if desired. 21.2 low-power reference the low-power reference determines the accuracy of vrtc on start-up. once the main bandgap has been trimmed and has settled vrtc switches across to the main bandgap for greater accuracy.
wm8350 production data w pd, march 2010, rev 4.2 192 22 real-time clock (rtc) 22.1 general description the wm8350 contains a real time clock (rtc), which maintains the current date and time, and also has the capability to generate alarms and periodic interrupt signals. the rtc is powered by the backup supply (vrtc), in order that it can keep running when the normal power sources are unavailable. the rtc uses the 32.768khz clock generated by the on-chip crystal oscillator. to compensate for errors in this clock frequency, the rtc includes a frequency trim option. alternatively the rtc can be clocked from external 32.768khz input on a gpio pin configured as 32khz input. see section 12.2 for details of the 32khz oscillator control. 22.2 rtc control 22.2.1 modes of operation the real time clock is enabled when rtc_tick_ena is set to 1. (this is the default setting.) see table 134 for the definition of this rtc_tick_ena. the rtc can operate as a 24-hour clock or else as a 12-hour clock with a separate am/pm flag bit. the rtc time register fields can be treated as bcd (binary-coded decimal) or as binary data formats. these options are selected as described in table 129. address bit label default description r23 (17h) rtc time control 15 rtc_bcd 0 rtc coding (applies to all time registers) 0 = binary 1 = bcd 14 rtc_12hr 0 rtc 12/24 hours mode 1 = 12 hours (msb of rtc_hrs indicates am/pm) 0 = 24 hours (msb of rtc_hrs is 0) table 129 rtc modes of operation 22.2.2 rtc time registers the current time and date are held in registers r16 to r19, as described in table 130. address bit label default description r16 (10h) rtc sec / min 14:8 rtc_mins [6:0] 000 0000 rtc minutes; 0 to 59 6:0 rtc_secs [6:0] 000 0000 rtc seconds; 0 to 59 r17 (11h) rtc hour / day 10:8 rtc_day [2:0] 1 rtc day of the week; 1 to 7, 1 = sunday 5 rtc_hpm 0 rtc hours am/pm flag 0 = am 1 = pm only valid in 12hour mode. 4:0 rtc_hrs [4:0] 0 0000 hours register with 0-23 range in 24hour mode and 1-12 in 12 hour mode. r18 (12h) rtc date 12:8 rtc_mth [5:0] 0_0001 month register with range 1-12. 5:0 rtc_date [5:0] 00_0001 date register with range 1-31. r19 (13h) rtc year 13:8 rtc_yhundred s [6:0] 01_0100 year hundreds register tied to 20(dec) 7:0 rtc_yunits [7:0] 0000_0000 year units register with range 0-99. table 130 rtc time registers
production data wm8350 w pd, march 2010, rev 4.2 193 the current time can be read from the registers defined above. as the content of the time registers changes every second, a single register read, executed at an arbitrary time, does not guarantee an accurate time reading. two possible methods are recommended for reliable reading of the time registers: ? read after interrupt: the rtc_sec interrupt (see section 22.5) indicates that the seconds counter has just been incremented, and that the rtc registers will not change again within the next 999ms. a register read executed immediately after an rtc_sec interrupt can therefore be taken as an accurate time reading. ? two consecutive reads: if two consecutive reads within a short time (less than 1s apart) return the same result, this can be taken as an accurate reading. if the two results differ, the procedure should be repeated. 22.2.3 setting the time when writing to the rtc time registers, the seconds counter should first be stopped in order to prevent glitches. the following procedure should be used: ? set the rtc_set bit to stop seconds counter ? read the rtc_sts bit. repeat this step until rtc_sts=1 ? set new time in registers r16 to r19 ? clear the rtc_set bit to re-enable seconds counter. the rtc_set and rtc_sts bits are defined in table 131. address bit label default description r23 (17h) rtc time control 11 rtc_set 0 stops rtc seconds counter (instruction only) 0 = normal operation 1 = stop counter 10 rtc_sts 0 status of rtc seconds counter 0 = normal operation 1 = counter stopped table 131 setting the rtc time 22.2.4 rtc alarm registers an rtc alarm can be set by writing to the control fields in registers r20 to r22, which are in a similar format to the rtc time registers. setting any of these fields to ?all 1?s? results in that field being a ?don?t care? field. for example, setting the rtc_almday field to 0001 determines that the alarm is set for a sunday, whilst setting rtc_almday to 1111 results in the programmed alarm occurring on every day of the week. when the rtc alarm time/date fields match the rtc time, the alarm event is signalled by the wm8350 raising the rtc_alm_eint interrupt. see section 22.5 for further details.
wm8350 production data w pd, march 2010, rev 4.2 194 address bit label default description r20 (14h) alarm sec / min 14:8 rtc_almmins [6:0] 000_0000 minutes alarm register with range 0-59. all 1's sets to 'don't care' state. note, during programming it is best to disable the alarm enable request bit to avoid false alarms. 6:0 rtc_almsecs [6:0] 000_0000 seconds alarm register with range 0-59. all 1's set to 'don't care' state. note, during programming it is best to disable the alarm enable request bit to avoid false alarms. r21 (15h) alarm hour / day 11:8 rtc_almday [3:0] 0000 day alarm register, with range 1-7, 1 = sunday. all 1's sets to 'don't care' state. note, during programming it is best to disable the alarm enable request bit to avoid false alarms. 5 rtc_almhpm 0 alarm hours am/pm flag 0 = am 1 = pm only applicable in 12 hour mode. in 24 hour mode set to 1 if rtc_almhrs is set to all 1?s ?don?t care? or 0 otherwise. 4:0 rtc_almhrs [4:0] 0_0000 hours alarm register with range 0-23 in 24 hours mode and 1-12 in 12 hour. in 12 hour mode bit 5 is used as pm/not-am flag. all 1's sets to 'don't care' state. note, during programming it is best to disable the alarm enable request bit to avoid false alarms. r22 (16h) alarm date 12:8 rtc_almmth [4:0] 0_0000 month alarm register with range 1-12. all 1's sets to 'don't care' state. note, during programming it is best to disable the alarm enable request bit to avoid false alarms. 5:0 rtc_almdate [5:0] 00_0000 date alarm register with range 1-31. all 1's sets to 'don't care' state. note, during programming it is best to disable the alarm enable request bit to avoid false alarms. table 132 rtc alarm registers the ?don?t care? option (all bits set to 1) provides extra flexibility for programming alarm duration and recurrent alarms. for example: ? setting only rtc_almsec to ?don?t care? produces an alarm lasting 1 minute. ? setting only rtc_almdate to ?don?t care? produces an alarm lasting 1 second that recurs once a week, on the day determined by rtc_almday, during the month determined by rtc_almmth. ? setting rtc_almsec, rtc_almdate, rtc_almday and rtc_almmth to ?don?t care? produces a daily alarm lasting 1 minute.
production data wm8350 w pd, march 2010, rev 4.2 195 22.2.5 setting the alarm writing to the rtc alarm registers requires a procedure similar to that used when setting rtc time, in order to prevent accidental alarms being triggered: ? set the rtc_almset bit to disable alarms ? read the rtc_almsts bit. repeat this step until rtc_almsts=1 ? set new rtc alarm in registers r20 to r22 ? clear the rtc_almset bit to re-enable rtc alarm the rtc_almset and rtc_almsts bits are defined in table 133. address bit label default description r23 (17h) rtc time control 9 rtc_almset 0 stops alarms (instruction only) 0 = normal operation 1 = stop alarms it is recommended to stop alarms when setting the rtc alarm. this avoids false alarms. 8 rtc_almsts 0 actual status of alarm circuitry 0 = normal operation 1 = alarms stopped table 133 setting the rtc alarm 22.3 trimming the rtc the rtc has a frequency trim feature to allow compensation for known and constant errors in the crystal oscillator frequency up to 8hz. programming the frequency trim requires a procedure similar to that used when setting rtc and alarm time: ? clear the rtc_tick_ena bit to disable the 1 second tick generator ? read the rtc_ticksts bit. repeat this step until rtc_ticksts=1 ? set new rtc frequency trim value in register r218 ? set the rtc_tick_ena bit to resume normal operation
wm8350 production data w pd, march 2010, rev 4.2 196 the applicable register bits are defined in table 134. address bit label default description r12 (0ch) power mgmt (5) 11 rtc_tick_ena 1 enable rtc counting (instruction only) 0 = disabled 1 = enabled protected by security key. r218 (dah) rtc tick control 15 14 rtc_ticksts 0 status of tick request. this bit can be used to ensure the rtc is using the value of rtc_tick_ena. 0 = disabled 1 = enabled protected by security key. 9:0 rtc_trim [9:0] 00_0000_ 0000 rtc frequency trim. used to adjust the count value of the tick gen block to compensate for crystal inaccuracies. rtc frequency trim is a 10bit fixed point <4,6> 2's complement number. msb scaling = -8hz. the register indicates the error (in hz) with respect to the ideal 32768hz) of the input crystal frequency. e.g.: actual crystal freq: 32769.00hz: required trim 0xb0001_000000 (+1.000000) actual crystal freq: 32767.00hz: required trim 0xb1111_000000 (- 1.000000) actual crystal freq: 32775.58hz: required trim 0xb0111_100101 (+7.578125) actual crystal freq: 32763.78hz: required trim 0xb1011_110010 (- 4.218750) protected by security key. note: rtc_tick_ena can be accessed through r12 or through r218. reading from or writing to either register location has the same effect. table 134 controlling the rtc frequency trim
production data wm8350 w pd, march 2010, rev 4.2 197 22.4 rtc gpio output it is possible to configure gpio6 as an rtc output, as described in section 20. this output is a square wave that is derived from the trimmed rtc counter. the frequency can be set to values between 1hz and 16.384khz, as described in table 135. note that, when rtc_trim is used to calibrate the crystal oscillator, the nominal 50% duty ratio of this output may deviate by up to 8 clock periods of the 32.768khz oscillator on the occasions when the rtc seconds counter is increased (ie. once per second). address bit label default description r23 (17h) rtc time control 3:0 rtc_dsw [3:0] 0000 divided square wave select. 0000 = disabled 0001 = 1hz 0010 = 2hz ? 1011 = 1024hz 1100 = 2048hz 1101 = 4096hz 1110 = 8192hz 1111 = 16384hz note: due to trim settings for crystal intolerances a single square wave period during seconds rollover may be decrease its on time period or increase its off time period by up to 8 32khz periods. table 135 rtc gpio output
wm8350 production data w pd, march 2010, rev 4.2 198 22.5 rtc interrupts the rtc has its own first-level interrupt, rtc_int (see section 24). this comprises three second- level interrupts which indicate periodic events or rtc alarm conditions. the rtc raises an rtc_sec_eint interrupt on every 1 second rollover. an additional periodic interrupt, rtc_per_eint, is configurable with a frequency determined by the rtc_pint field, as defined in table 137. the rtc_alm_eint interrupt is triggered by the rtc alarm function, as described in section 22.2.4. these interrupts can be individually masked by setting the applicable mask bit(s) as described in table 136. address bit label description r25 (19h) interrupt status 1 7 rtc_per_eint rtc periodic interrupt. (rising edge triggered) note: this bit is cleared once read. 6 rtc_sec_eint rtc 1s rollover complete (1hz tick). (rising edge triggered) note: this bit is cleared once read. 5 rtc_alm_eint rtc alarm signalled. (rising edge triggered) note: this bit is cleared once read. r33 (21h) interrupt status 1 mask 7:5 ?im_? + name of respective bit in r25 each bit in r33 enables or masks the corresponding bit in r25. the default value for these bits is 0 (unmasked). table 136 rtc interrupts address bit label default description r23 (17h) rtc time control 6:4 rtc_pint [2:0] 010 selects frequency of periodic interrupt output pulse (32khz period duration) as shown below. when set time status is high, the periodic output is disabled. 000 = disabled 001 = 1 sec 010 = 1 min 011 = 1 hour 100 = 1 day 101 = 1 month 11x = disabled table 137 configuring rtc periodic interrupts
production data wm8350 w pd, march 2010, rev 4.2 199 23 watchdog timer the wm8350 includes a watchdog timer designed to detect a possible software fault condition where the host processor has locked up. the watchdog timer checks for any write operation to the watchdog control register r4 (04h) or receipt of a heartbeat signal from the host processor on gpio9 (see section 20). if neither event occurs within a programmable time, this is interpreted as a fault in the host processor. the watchdog timer then raises an interrupt and/or generates a system reset; the desired response to a watchdog timeout is set using the wdog_mode register field. if gpio9 is configured as heartbeat input (gp9_fn = 0001, gp9_dir = 1), then the watchdog timer can only be reset by a rising logic level applied to the gpio9 pin. if gpio9 is not configured as heartbeat input, then the watchdog timer can only be reset by a write operation to the watchdog control register r4 (04h).if a system reset is triggered by the watchdog timeout, the wm8350 asserts the /rst pin and the /rst and /memrst (gpio) reset signals, resets the internal control registers and then initiates a start-up sequence. the watchdog timer can be halted for debug purposes using the wdog_debug bit. the watchdog can be disabled in hibernate mode using the wdog_hib_mode bit. the watchdog timer duration is set using wdog_to, as described in table 138. the watchdog timeout interrupt event is indicated by the sys_wdog_to_eint register field. this is one of the second-level interrupts which triggers a first-level system interrupt, sys_int (see section 24). this can be masked by setting the mask bit as described in table 139. address bit label default description r3 (03h) system control 1 7 wdog_debu g 0 halts watchdog timer for system debugging 0 = normal operation 1 = wdog halt r4 (04h) system control 2 7 wdog_hib_m ode 0 watchdog behaviour in hibernate state 0 = wdog disabled in hibernate 1 = wdog controlled by wdog_mode in hibernate 5:4 wdog_mode [2:0] dependan t on config settings watchdog mode 00 = disabled 01 = sys_wdog_to interrupt on time-out 10 = wkup_wdog_rst interrupt and system reset on time-out 11 = sys_wdog_to interrupt on first time- out, wkup_wdog_rst interrupt and system reset on second time-out. protected by security key. 2:0 wdog_to [2:0] 101 watchdog timeout (seconds) the timer is reset to this value when a heartbeat signal edge is detected or the host writes to the watchdog control register. 000 = 0.125s ? (time doubles with each step) 101 = 4s 11x = reserved protected by security key. r5 (05h) system hibernate 7 wdog_hib_m ode 0 watchdog behaviour in hibernate state 0 = wdog disabled in hibernate 1 = wdog controlled by wdog_mode in hibernate note: wdog_hib_mode can be accessed through r4 or through r5. reading from or writing to either register location has the same effect. table 138 controlling the watchdog timer
wm8350 production data w pd, march 2010, rev 4.2 200 address bit label description r26 (1ah) interrupt status 2 0 sys_wdog_to_eint watc hdog timeout has occurred. (rising edge triggered) note: this bit is cleared once read. r34 (22h) interrupt status 2 mask 0 im_sys_wdog_to_eint mask bit for watc hdog timer interrupt when set to 1, im_ sys_wdog_to_eint masks sys_wdog_to_eint in r26 and does not trigger an sys_int interrupt when sys_wdog_to_eint is set). table 139 watchdog timer interrupts note that, if gpio9 is configured as vcc_fault output (gp9_fn = 0001, gp9_dir = 0), then the watchdog timer will be configured to expect a heartbeat reset trigger. in this configuration, the watchdog reset will never occur and the system may lock up if the watchdog mode is enabled. the watchdog timer function cannot be supported if gpio9 is configured as vcc_fault output. either the gpio9 must be reconfigured as some other function, or the watchdog timer must remain disabled. note that config mode 01 selects gpio9 = vcc_fault by default.
production data wm8350 w pd, march 2010, rev 4.2 201 24 interrupt controller the wm8350 can send an interrupt signal to the host processor though the irq pin. interrupts can alert the host to a wide range of events and fault conditions. each of these can be individually enabled or masked. after receiving an interrupt, the host processor can read the interrupt registers in order to determine what caused the interrupt, and take appropriate action if required. the wm8350 interrupt controller has two levels: second-level interrupts indicate a single event in one of the circuit blocks. this is indicated by setting a register bit. this bit is a ?sticky? bit - once it is set, it remains at logic 1 until the host processor reads the register. when the processor reads the register, the interrupt bits in that register are cleared. first-level interrupts are the logical or of several second-level interrupts (usually all the interrupts associated with one particular circuit block). the default polarity of irq is active low, meaning that the irq signal is the logical nor of all first-level interrupts. individual second-level interrupt bits can be masked, which prevents them from setting the first-level interrupt. (note that the ?sticky? bit will be set as normal, even if that interrupt is masked.) individual first-level interrupts can also be masked, preventing them from asserting the irq output. figure 80 interrupt equivalent logic to find the cause of an interrupt signal, the host processor should first read the first-level interrupt register r24 to locate the circuit blocks(s) where the interrupt originated; after that, the precise cause(s) of the interrupt can be determined by reading the second-level interrupt register(s) as appropriate to the indicated first-level interrupt event. 24.1 configuring the irq pin the default polarity of irq is active low; this can be changed to active high if desired, by writing to the irq_pol bit. when the wm8350 is in the hibernate state, interrupts can be disabled or can remain active. the desired behaviour can be selected using the irq_hib_mode bit. address bit label default description r3 (03h) system control 1 0 irq_pol 0 irq pin polarity 0 = active low (/irq) 1 = active high (irq) r5 (05h) system hibernate 3 irq_hib_mod e 0 irq pin state in hibernate mode 0 = normal operation 1 = forced to indicate there is no irq. table 140 interrupts in hibernate state
wm8350 production data w pd, march 2010, rev 4.2 202 24.2 first-level interrupts each first level interrupt has a status bit in register r24, which can be read to determine the origin of an irq event. each of these bits may be masked by setting the corresponding field in register r32. by default, the first-level interrupts are all masked. address bit label description r24 (18h) system interrupts 13 oc_int first-level over-current interrupt. note: this bit is cleared once read. 12 uv_int first-level under-voltage interrupt. note: this bit is cleared once read. 9 cs_int first-level current sink interrupt. note: this bit is cleared once read. 8 ext_int first-level external interrupt. note: this bit is cleared once read. 7 codec_int first-level codec interrupt. note: this bit is cleared once read. 6 gp_int first-level gpio interrupt. note: this bit is cleared once read. 5 auxadc_int first-level auxadc comparator interrupt. note: this bit is cleared once read. 4 rtc_int first-level rtc interrupt. note: this bit is cleared once read. 3 sys_int first-level system interrupt. note: this bit is cleared once read. 2 chg_int first-level charger interrupt. note: this bit is cleared once read. 1 usb_int first-level usb interrupt. note: this bit is cleared once read. 0 wkup_int first-level wakeup interrupt. note: this bit is cleared once read. r32 (20h) system interrupt mask 13:0 ?im_? + name of respective bit in r25 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. each bit in r32 enables or masks the corresponding bit in r24. the default value for these bits is 1 (masked) note: register is r24 is read-only. table 141 first level interrupt status and mask bits
production data wm8350 w pd, march 2010, rev 4.2 203 24.3 second-level interrupts the following sections define the second-level interrupt status and control bits associated with each of the first-level bits defined in table 141. 24.3.1 overcurrent interrupt the first-level oc_int interrupt comprises one second-level interrupt for the limit switch. this status bit is in register r29 and its mask bit is in register r37, as defined in table 142. address bit label description r29 (1dh) over current interrupt status 15 oc_ls_eint limit switch over-current interrupt. (rising edge triggered) note: this bit is cleared once read. r37 (25h) over current interrupt mask 15 im_oc_ls_eint interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. when im_oc_ls_eint is set to 1, then oc_ls_eint in r29 does not trigger an oc_int interrupt when set. the default value is 0 (unmasked). table 142 over-current interrupt 24.3.2 undervoltage interrupts the first-level uv_int interrupt comprises several second-level interrupts for the dc-dcs and ldos. each of these has a status bit in register r28 and a mask bit in register r36, as defined in table 143. address bit label description r28 (1ch) under voltage interrupt status 11 uv_ldo4_eint ldo4 under-voltage interrupt. (rising edge triggered) note: this bit is cleared once read. 10 uv_ldo3_eint ldo3 under-voltage interrupt. (rising edge triggered) note: this bit is cleared once read. 9 uv_ldo2_eint ldo2 under-voltage interrupt. (rising edge triggered) note: this bit is cleared once read. 8 uv_ldo1_eint ldo1 under-voltage interrupt. (rising edge triggered) note: this bit is cleared once read. 5 uv_dc6_eint dcdc6 under-voltage interrupt. (rising edge triggered) note: this bit is cleared once read. 4 uv_dc5_eint dcdc5 under-voltage interrupt. (rising edge triggered) note: this bit is cleared once read. 3 uv_dc4_eint dcdc4 under-voltage interrupt. (rising edge triggered) note: this bit is cleared once read. 2 uv_dc3_eint dcdc3 under-voltage interrupt. (rising edge triggered) note: this bit is cleared once read. 1 uv_dc2_eint dcdc2 under-voltage interrupt. (rising edge triggered) note: this bit is cleared once read.
wm8350 production data w pd, march 2010, rev 4.2 204 address bit label description 0 uv_dc1_eint dcdc1 under-voltage interrupt. (rising edge triggered) note: this bit is cleared once read. r36 (24h) under voltage interrupt mask 11:0 ?im_? + name of respective bit in r28 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. each bit in r36 enables or masks the corresponding bit in r28. the default value for these bits is 0 (unmasked). table 143 under-voltage interrupts 24.3.3 current sink (led driver) interrupts the first-level cs_int interrupt comprises two second-level interrupts for the current sink functions. each of these has a status bit in register r26 and a mask bit in register r34, as defined in table 144. address bit label description r26 (1ah) interrupt status 2 13 cs1_eint flag to indicate drain voltage can no longer be regulated and output current may be out of spec. (rising edge triggered) note: this bit is cleared once read. 12 cs2_eint flag to indicate drain voltage can no longer be regulated and output current may be out of spec. (rising edge triggered) note: this bit is cleared once read. r34 (22h) interrupt status 2 mask 13:12 ?im_? + name of respective bit in r26 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. each bit in r34 enables or masks the corresponding bit in r26. the default value for these bits is 0 (unmasked). table 144 current sink interrupts
production data wm8350 w pd, march 2010, rev 4.2 205 24.3.4 external interrupts the first-level ext_int interrupt comprises three second-level interrupts for usb, wall and battery supply status. each of these has a status bit in register r31 and a mask bit in register r37, as defined in table 145. these flags are triggered on the rising and falling edges of the interrupt events. address bit label description r31 (1fh) comparator interrupt status 15 ext_usb_fb_eint usb_fb changed interrupt. (rising and falling edge triggered) note: this bit is cleared once read. 14 ext_wall_fb_eint wall_fb changed interrupt. (rising and falling edge triggered) note: this bit is cleared once read. 13 ext_batt_fb_eint batt_fb changed interrupt. (rising and falling edge triggered) note: this bit is cleared once read. r39 (27h) comparator interrupt status mask 15:13 ?im_? + name of respective bit in r31 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. each bit in r39 enables or masks the corresponding bit in r31. the default value for these bits is 0 (unmasked). table 145 external interrupts 24.3.5 codec interrupts the first-level codec_int interrupt comprises four second-level interrupts for the codec. each of these has a status bit in register r31 and a mask bit in register r39, as defined in table 146. these flags are triggered on the rising and falling edges of the interrupt events. address bit label description r31 (1fh) comparator interrupt status 11 codec_jck_det_l_eint left channel jack detection interrupt. (rising and falling edge triggered) note: this bit is cleared once read. 10 codec_jck_det_r_eint right channel jack detection interrupt. (rising and falling edge triggered) note: this bit is cleared once read. 9 codec_micscd_eint mic short-circuit detect interrupt. (rising and falling edge triggered) note: this bit is cleared once read. 8 codec_micd_eint mic detect interrupt. (rising and falling edge triggered) note: this bit is cleared once read. r39 (27h) comparator interrupt status mask 11:8 ?im_? + name of respective bit in r31 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. each bit in r39 enables or masks the corresponding bit in r31. the default value for these bits is 0 (unmasked). table 146 codec interrupts
wm8350 production data w pd, march 2010, rev 4.2 206 24.3.6 gpio interrupts the first-level gp_int interrupt comprises several second-level interrupts for the 13 gpio pins. each of these has a status bit in register r30 and a mask bit in register r35, as defined in table 147. address bit label description r30 (1eh) gpio interrupt status 12 gp12_eint gpio12 interrupt. (trigger controlled by gp12 registers.) note: this bit is cleared once read. 11 gp11_eint gpio11 interrupt. (trigger controlled by gp11 registers.) note: this bit is cleared once read. 10 gp10_eint gpio10 interrupt. (trigger controlled by gp10 registers.) note: this bit is cleared once read. 9 gp9_eint gpio9 interrupt. (trigger controlled by gp9 registers.) note: this bit is cleared once read. 8 gp8_eint gpio8 interrupt. (trigger controlled by gp8 registers.) note: this bit is cleared once read. 7 gp7_eint gpio7 interrupt. (trigger controlled by gp7 registers.) note: this bit is cleared once read. 6 gp6_eint gpio6 interrupt. (trigger controlled by gp6 registers.) note: this bit is cleared once read. 5 gp5_eint gpio5 interrupt. (trigger controlled by gp5 registers.) note: this bit is cleared once read. 4 gp4_eint gpio4 interrupt. (trigger controlled by gp4 registers.) note: this bit is cleared once read. 3 gp3_eint gpio3 interrupt. (trigger controlled by gp3 registers.) note: this bit is cleared once read. 2 gp2_eint gpio2 interrupt. (trigger controlled by gp2 registers.) note: this bit is cleared once read. 1 gp1_eint gpio1 interrupt. (trigger controlled by gp1 registers.) note: this bit is cleared once read. 0 gp0_eint gpio0 interrupt. (trigger controlled by gp0 registers.) note: this bit is cleared once read. r38 (26h) gpio interrupt mask 12:0 ?im_? + name of respective bit in r30 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. each bit in r38 enables or masks the corresponding bit in r30. the default value for these bits is 0 (unmasked). table 147 gpio interrupts
production data wm8350 w pd, march 2010, rev 4.2 207 24.3.7 auxadc and digital comparator interrupts the first-level auxadc_int interrupt comprises several second-level interrupts for the auxiliary adc and associated digital comparators. each of these has a status bit in register r26 and a mask bit in register r34, as defined in table 148. address bit label description r26 (1ah) interrupt status 2 8 auxadc_datardy_eint auxiliary data ready. (rising edge triggered) note: this bit is cleared once read. 7 auxadc_dcomp4_eint dcomp4 interrupt. (rising edge triggered) note: this bit is cleared once read. 6 auxadc_dcomp3_eint dcomp3 interrupt. (rising edge triggered) note: this bit is cleared once read. 5 auxadc_dcomp2_eint dcomp2 interrupt. (rising edge triggered) note: this bit is cleared once read. 4 auxadc_dcomp1_eint dcomp1 interrupt. (rising edge triggered) note: this bit is cleared once read. r34 (22h) interrupt status 2 mask 8:4 ?im_? + name of respective bit in r26 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. each bit in r34 enables or masks the corresponding bit in r26. the default value for these bits is 0 (unmasked). table 148 auxadc interrupts 24.3.8 rtc interrupts the first-level rtc_int interrupt comprises three second-level interrupts for the real time clock. each of these has a status bit in register r25 and a mask bit in register r33, as defined in table 149. address bit label description r25 (19h) interrupt status 1 7 rtc_per_eint rtc periodic interrupt. (rising edge triggered) note: this bit is cleared once read. 6 rtc_sec_eint rtc 1s rollover complete (1hz tick). (rising edge triggered) note: this bit is cleared once read. 5 rtc_alm_eint rtc alarm signalled. (rising edge triggered) note: this bit is cleared once read. r33 (21h) interrupt status 1 mask 7:5 ?im_? + name of respective bit in r25 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. each bit in r33 enables or masks the corresponding bit in r25. the default value for these bits is 0 (unmasked). table 149 rtc interrupts
wm8350 production data w pd, march 2010, rev 4.2 208 24.3.9 system interrupts the first-level sys_int interrupt comprises four second-level interrupts for various system events. each of these has a status bit in register r26 and a mask bit in register r34, as defined in table 150. address bit label description r26 (1ah) interrupt status 2 3 sys_hyst_comp_fail_ei nt hysteresis comparator indication that line or batt is less that shutdown threshold. (rising edge triggered) note: this bit is cleared once read. 2 sys_chip_gt 115_eint chip over 115c temp limit. (rising edge triggered) note: this bit is cleared once read. 1 sys_chip_gt 140_eint chip over 140c temp limit. (rising edge triggered) note: this bit is cleared once read. 0 sys_wdog_to_eint watc hdog timeout has occurred. (rising edge triggered) note: this bit is cleared once read. r34 (22h) interrupt status 2 mask 3:0 ?im_? + name of respective bit in r26 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. each bit in r34 enables or masks the corresponding bit in r26 the default value for these bits is 0 (unmasked). table 150 system interrupts 24.3.10 charger interrupts the system interrupt chg_int interrupt comprises several second-level interrupts for the battery charger. each of these has a status bit in register r25 and a mask bit in register r33, as defined in table 151. address bit label description r25 (19h) interrupt status 1 15 chg_batt_hot_eint battery temp too hot. (rising edge triggered) note: this bit is cleared once read. 14 chg_batt_cold_eint battery temp too cold. (rising edge triggered) note: this bit is cleared once read. 13 chg_batt_fail_eint battery fail. (rising edge triggered) note: this bit is cleared once read. 12 chg_to_eint charger timeout. (rising edge triggered) note: this bit is cleared once read. 11 chg_end_eint charging final stage. (rising edge triggered) note: this bit is cleared once read. 10 chg_start_eint charging started. (rising edge triggered) note: this bit is cleared once read. 9 chg_fast_rdy_eint indicates that the charger is ready to go into fast charge. (rising edge triggered) note: this bit is cleared once read.
production data wm8350 w pd, march 2010, rev 4.2 209 address bit label description 2 chg_vbatt_lt_3p9_eint battery volt age < 3.9 interrupt. (rising edge triggered) note: this bit is cleared once read. 1 chg_vbatt_lt_3p1_eint battery volt age < 3.1 interrupt. (rising edge triggered) note: this bit is cleared once read. 0 chg_vbatt_lt_2p 85_ein t battery voltage < 2.85 interrupt. (rising edge triggered) note: this bit is cleared once read. r33 (21h) interrupt status 1 mask 15:9 2:0 ?im_? + name of respective bit in r25 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. each bit in r33 enables or masks the corresponding bit in r25. the default value for these bits is 0 (unmasked). table 151 charger interrupts 24.3.11 usb interrupts the first-level usb_int interrupt comprises one second-level interrupt for the usb limit switch. this status bit is in register r26 and its mask bit is in register r34, as defined in table 152. address bit label description r26 (1ah) interrupt status 2 10 usb_limit_eint usb limit switch interrupt. (rising edge triggered) note: this bit is cleared once read. r34 (22h) interrupt status 2 mask 10 im_usb_limit_eint interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. when im_usb_limit_eint is set to 1, then usb_limit_eint in r26 does not trigger an usb_int interrupt when set. the default value is 0 (unmasked). table 152 usb interrupt
wm8350 production data w pd, march 2010, rev 4.2 210 24.3.12 wake-up interrupts the first-level wkup_int interrupt comprises several second-level interrupts. after a system reset, these indicate to the host processor why the reset occurred. each wake-up interrupt has a status bit in register r31 and a mask bit in register r30, as defined in table 153. address bit label description r31 (1fh) comparator interrupt status 6 wkup_off_state_eint indicates that the chip started from the off state. (rising edge triggered) note: this bit is cleared once read. 5 wkup_hib_state_eint indicated the chip started up from the hibernate state. (rising edge triggered) note: this bit is cleared once read. 4 wkup_conv_fault_eint indicates the wakeup was caused by a converter fault leading to the chip being reset. (rising edge triggered) note: this bit is cleared once read. 3 wkup_wdog_rst_eint indicates the wakeup was caused by a watchdog heartbeat being missed, and hence the chip being reset. (rising edge triggered) note: this bit is cleared once read. 2 wkup_gp_pwr_on_eint pwr_on (alternate gpio function) pin has been pressed for longer than specified time. (rising edge triggered) note: this bit is cleared once read. 1 wkup_onkey_eint on key has been pressed for longer than specified time. (rising edge triggered) note: this bit is cleared once read. 0 wkup_gp_wakeup_eint wakeup (alternate gpio function) pin has been pressed for longer than specified time. (rising edge triggered) note: this bit is cleared once read. r39 (27h) comparator interrupt status mask 6:0 ?im_? + name of respective bit in r31 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. each bit in r39 enables or masks the corresponding bit in r31. the default value for these bits is 0 (unmasked). table 153 wake-up interrupts
production data wm8350 w pd, march 2010, rev 4.2 211 25 temperature sensing 25.1 chip temperature monitoring the wm8350 has a built-in sensor to monitor its internal temperature, with two levels of over- temperature protection. when the device temperature exceeds the thermal warning temperature, the wm8350 raises a sys_chip_gt115_eint interrupt. if the chip temperature continues to rise, and exceeds the thermal shutdown temperature, the sys_chip_gt140_eint interrupt is set and the device shuts down. after a thermal shutdown, the wm8350 can only restart after its temperature has fallen below the restart temperature. the associated register fields are defined in table 154. address bit label description r26 (1ah) interrupt status 2 2 sys_chip_gt115_eint chip over 115c temp limit. (rising edge triggered) note: this bit is cleared once read. 1 sys_chip_gt140_eint chip over 140c temp limit. (rising edge triggered) note: this bit is cleared once read. r34 (22h) interrupt status 2 mask 2:1 ?im_? + name of respective bit in r26 each bit in r34 enables or masks the corresponding bit in r26. the default value for these bits is 0 (unmasked). table 154 temperature sensing interrupts
wm8350 production data w pd, march 2010, rev 4.2 212 26 register map 26.1 overview the complete register map is shown below. the detailed description can be found in the relevant text of the device description. the wm8350 can be configured using the control interface. all registers not listed and all unused bits should be set to '0'. key to characters in brackets: k = protected by key, m = default in metal mask, r = read-only, w = write-only, o = read-only in rom configs, d = protected by key in development mode, read-only otherwise, n = never reset, p = reset by por only, s = reset by state machine, sd = reset by state machine except in dev mode, u = reset on uvlo, m = reset on /memrst reg name 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 default r0 (0h) reset/id sw_reset/chip_id[15:0] (n) 6143h r1 (1h) id chip_rev[3:0] conf_sts[1:0] 0 0 cust_id[7:0] r2 (2h) revision 0 0 0 0 0 0 0 0 mask_rev[7:0] r3 (3h) system control 1 chip_on (ms) sys_rst (kms) powercy cle vcc_faul t_ov (ms) rstb_to[1:0] (m) bg_sleep (m) 0 wdog_de bug (k) chip_res et_ena (s) mem_vali d (m) chip_set_ up on_deb_t (k) 0 on_pol (kms) irq_pol (ms) 1c02h 1c02h 1c02h 1c02h r4 (4h) system control 2 usb_susp end_8ma (m) usb_susp end (m) usb_mstr (ms) usb_mstr _src (ms) usb_mstr _500ma (ms) usb_noli m usb_slv_5 00ma (ms) 0 wdog_hib _mode 0 wdog_mode[1:0] (kms) 0 wdog_to[2:0] (k) 0004h 0204h 0214h 0204h r5 (5h) system hibernate hibernat e (ms) 0 0 0 0 0 0 0 wdog_hib _mode hib_start up_seq reg_rese t_hib_mo de rst_hib_m ode irq_hib_m ode memrst_h ib_mode pccomp_ hib_mode tempmon _hib_mod e 0000h r6 (6h) interface control use_dev_ pins (s) dev_addr[1:0] (s) config_d one (s) reconfig _at_on 0 autoinc (s) 0 0 0 0 0 spi_cfg (km) spi_4wire (km) spi_3wire (km) 0 8a00h 8a00h 8a00h 8a00h r8 (8h) power mgmt (1) codec_isel[1:0] vbuf_ena 0 0 output_d rain_ena 0 mic_det_e na 0 0 bias_ena micb_ena 0 vmid_ena vmid[1:0] 8000h r9 (9h) power mgmt (2) 0 0 0 0 in3r_ena in3l_ena inr_ena inl_ena mixinr_en a mixinl_en a out4_ena out3_ena 0 0 mixoutr_ ena mixoutl_ ena 0000h r10 (ah) power mgmt (3) 0 0 0 0 0 0 0 0 in3r_to_o ut2r 0 0 0 out2r_en a out2l_en a out1r_en a out1l_en a 0000h r11 (bh) power mgmt (4) 0 sysclk_e na adc_hpf_ ena 0 0 0 0 toclk_en a 0 0 dacr_ena dacl_ena adcr_ena adcl_ena 0 0 2000h
production data wm8350 w pd, march 2010, rev 4.2 213 reg name 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 default r12 (ch) power mgmt (5) 0 0 0 codec_en a (s) rtc_tick_ ena (kms) osc32k_e na (kms) chg_ena (kms) sw_vrtc_ ena (s) auxadc_e na (s) 0 0 0 dcmp4_en a (s) dcmp3_en a (s) dcmp2_en a (s) dcmp1_en a (s) 0e00h 0e00h 0e00h 0e00h r13 (dh) power mgmt (6) ls_ena (ms) 0 0 0 ldo4_ena (ms) ldo3_ena (ms) ldo2_ena (ms) ldo1_ena (ms) 0 0 dc6_ena (ms) dc5_ena (ms) dc4_ena (ms) dc3_ena (ms) dc2_ena (ms) dc1_ena (ms) 0000h r14 (eh) power mgmt (7) 0 0 0 0 0 0 0 0 0 0 0 0 0 0 cs2_ena (s) cs1_ena (s) 0000h r16 (10h) rtc seconds/minutes 0 rtc_mins[6:0] 0 rtc_secs[6:0] 0000h r17 (11h) rtc hours/day 0 0 0 0 0 rtc_day[2:0] 0 0 rtc_hpm rtc_hrs[4:0] 0100h r18 (12h) rtc date/month 0 0 0 rtc_mth[4:0] 0 0 rtc_date[5:0] 0101h r19 (13h) rtc year 0 0 rtc_yhundreds[5:0] rtc_yunits[7:0] 1400h r20 (14h) alarm seconds/minutes 0 rtc_almmins[6:0] 0 rtc_almsecs[6:0] 0000h r21 (15h) alarm hours/day 0 0 0 0 rtc_almday[3:0] 0 0 rtc_almh pm rtc_almhrs[4:0] 0000h r22 (16h) alarm date/month 0 0 0 rtc_almmth[4:0] 0 0 rtc_almdate[5:0] 0000h r23 (17h) rtc time control rtc_bcd rtc_12hr 0 0 rtc_set rtc_sts rtc_alms et rtc_alms ts 0 rtc_pint[2:0] rtc_dsw[3:0] 0320h r24 (18h) system interrupts 0 0 oc_int uv_int 0 0 cs_int ext_int codec_in t gp_int auxadc_i nt rtc_int sys_int chg_int usb_int wkup_int 0000h r25 (19h) interrupt status 1 chg_batt _hot_eint chg_batt _cold_ein t chg_batt _fail_eint chg_to_ei nt chg_end_ eint chg_star t_eint chg_fast _rdy_eint 0 rtc_per_ eint rtc_sec_ eint rtc_alm_ eint 0 0 chg_vbat t_lt_3p9_ eint chg_vbat t_lt_3p1_ eint chg_vbat t_lt_2p85 _eint 0000h r26 (1ah) interrupt status 2 0 0 cs1_eint cs2_eint 0 usb_limit _eint 0 auxadc_d atardy_ei nt auxadc_d comp4_ei nt auxadc_d comp3_ei nt auxadc_d comp2_ei nt auxadc_d comp1_ei nt sys_hyst _comp_fa il_eint sys_chip_ gt115_ein t sys_chip_ gt140_ein t sys_wdo g_to_eint 0000h r28 (1ch) under voltage interrupt status 0 0 0 0 uv_ldo4_ eint uv_ldo3_ eint uv_ldo2_ eint uv_ldo1_ eint 0 0 uv_dc6_ei nt uv_dc5_ei nt uv_dc4_ei nt uv_dc3_ei nt uv_dc2_ei nt uv_dc1_ei nt 0000h r29 (1dh) over current interrupt status oc_ls_ein t 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0000h r30 (1eh) gpio interrupt status 0 0 0 gp12_eint gp11_eint gp10_eint gp9_eint gp8_eint gp7_eint gp6_eint gp5_eint gp4_eint gp3_eint gp2_eint gp1_eint gp0_eint 0000h r31 (1fh) comparator interrupt status ext_usb_ fb_eint ext_wall _fb_eint ext_batt_ fb_eint 0 codec_jc k_det_l_e int codec_jc k_det_r_ eint codec_mi cscd_eint codec_mi cd_eint 0 wkup_off _state_ei nt wkup_hib _state_ei nt wkup_co nv_fault_ eint wkup_wd og_rst_ei nt wkup_gp_ pwr_on_e int wkup_on key_eint wkup_gp_ wakeup_e int 0000h r32 (20h) system interrupts mask 0 0 im_oc_int (ms) im_uv_int (ms) 0 0 im_cs_int (ms) im_ext_in t (ms) im_codec _int (ms) im_gp_int (ms) im_auxad c_int (ms) im_rtc_in t (ms) im_sys_in t (ms) im_chg_in t (ms) im_usb_in t (ms) im_wkup_i nt (ms) 3fffh r33 (21h) interrupt status 1 mask im_chg_b att_hot_ eint (s) im_chg_b att_cold _eint (s) im_chg_b att_fail_ eint (s) im_chg_t o_eint (s) im_chg_e nd_eint (s) im_chg_s tart_eint (s) im_chg_f ast_rdy_ eint (s) 0 im_rtc_pe r_eint (s) im_rtc_se c_eint (s) im_rtc_al m_eint (s) 0 0 im_chg_v batt_lt_3 p9_eint (s) im_chg_v batt_lt_3 p1_eint (s) im_chg_v batt_lt_2 p85_eint (s) 0000h
wm8350 production data w pd, march 2010, rev 4.2 214 reg name 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 default r34 (22h) interrupt status 2 mask 0 0 im_cs1_ei nt (s) im_cs2_ei nt (s) 0 im_usb_li mit_eint (s) 0 im_auxad c_datard y_eint (s) im_auxad c_dcomp4 _eint (s) im_auxad c_dcomp3 _eint (s) im_auxad c_dcomp2 _eint (s) im_auxad c_dcomp1 _eint (s) im_sys_hy st_comp_ fail_eint (s) im_sys_c hip_gt115 _eint (s) im_sys_c hip_gt140 _eint (s) im_sys_w dog_to_e int (s) 0000h r36 (24h) under voltage interrupt status mask 0 0 0 0 im_uv_ldo 4_eint (s) im_uv_ldo 3_eint (s) im_uv_ldo 2_eint (s) im_uv_ldo 1_eint (s) 0 0 im_uv_dc6 _eint (s) im_uv_dc5 _eint (s) im_uv_dc4 _eint (s) im_uv_dc3 _eint (s) im_uv_dc2 _eint (s) im_uv_dc1 _eint (s) 0000h r37 (25h) over current interrupt status mask im_oc_ls_ eint (s) 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0000h r38 (26h) gpio interrupt status mask 0 0 0 im_gp12_e int (s) im_gp11_e int (s) im_gp10_e int (s) im_gp9_ei nt (s) im_gp8_ei nt (s) im_gp7_ei nt (s) im_gp6_ei nt (s) im_gp5_ei nt (s) im_gp4_ei nt (s) im_gp3_ei nt (s) im_gp2_ei nt (s) im_gp1_ei nt (s) im_gp0_ei nt (s) 0000h r39 (27h) comparator interrupt status mask im_ext_us b_fb_eint (s) im_ext_w all_fb_ei nt (s) im_ext_ba tt_fb_ein t (s) 0 im_codec _jck_det_ l_eint (s) im_codec _jck_det_ r_eint (s) im_codec _micscd_ eint (s) im_codec _micd_ein t (s) 0 im_wkup_ off_stat e_eint (s) im_wkup_ hib_state _eint (s) im_wkup_ conv_fau lt_eint (s) im_wkup_ wdog_rs t_eint (s) im_wkup_ gp_pwr_ on_eint (s) im_wkup_ onkey_ei nt (s) im_wkup_ gp_wake up_eint (s) 0000h r40 (28h) clock control 1 toclk_en a toclk_ra te 0 0 mclk_sel 0 0 mclk_div bclk_div[3:0] 0 opclk_div[2:0] 0040h r41 (29h) clock control 2 lrc_adc_ sel 0 0 0 0 0 0 0 0 0 0 0 0 0 0 mclk_dir 0000h r42 (2ah) fll control 1 fll_ena fll_osc_e na 1 1 1 fll_outdiv[2:0] fll_rsp_rate[3:0] 0 fll_rate[2:0] 3a00h r43 (2bh) fll control 2 fll_ratio[4:0] 0 fll_n[9:0] 7086h r44 (2ch) fll control 3 fll_k[15:0] c226h r45 (2dh) fll control 4 0 0 0 0 0 0 0 0 fll_ref_f req 0 fll_frac 0 0 0 fll_clk_src[1:0] 0000h r48 (30h) dac control 0 0 dac_mon o aif_lrclk rate 0 0 0 0 0 0 deemp[1:0] dac_sdmc lk_rate 0 dacl_dati nv dacr_dati nv 0000h r50 (32h) dac digital volume l dacl_ena 0 0 0 0 0 0 dac_vu dacl_vol[7:0] 00c0h r51 (33h) dac digital volume r dacr_ena 0 0 0 0 0 0 dac_vu dacr_vol[7:0] 00c0h r53 (35h) dac lr rate 0 0 0 0 daclrc_e na daclrc_rate[10:0] 0040h r54 (36h) dac clock control 0 0 0 0 0 0 0 0 0 0 0 dacclk_p ol 0 dac_clkdiv[2:0] 0000h r58 (3ah) dac mute 0 dac_mute 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4000h r59 (3bh) dac mute volume 0 dac_mute mode dac_mute rate dac_sb_fi lt 0 0 0 0 0 0 0 0 0 0 0 0 0000h r60 (3ch) dac side 0 0 adc_to_dacl[1:0] adc_to_dacr[1:0] 0 0 0 0 0 0 0 0 0 0 0000h r64 (40h) adc control adc_hpf_ ena 0 0 0 0 0 adc_hpf_cut[1:0] 0 0 0 0 0 0 adcl_dati nv adcr_dati nv 8000h r66 (42h) adc digital volume l adcl_ena 0 0 0 0 0 0 adc_vu adcl_vol[7:0] 00c0h
production data wm8350 w pd, march 2010, rev 4.2 215 reg name 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 default r67 (43h) adc digital volume r adcr_ena 0 0 0 0 0 0 adc_vu adcr_vol[7:0] 00c0h r68 (44h) adc divider 0 0 0 0 adcl_dac_svol[3:0] adcr_dac_svol[3:0] adcclk_p ol adc_clkdiv[2:0] 0000h r70 (46h) adc lr rate 0 0 0 0 adclrc_e na adclrc_rate[10:0] 0040h r72 (48h) input control 0 0 0 0 0 in2r_ena in1rn_ena in1rp_ena 0 0 0 0 0 in2l_ena in1ln_ena in1lp_ena 0303h r73 (49h) in3 input control in3r_ena in3r_sho rt 0 0 0 0 0 0 in3l_ena in3l_shor t 0 0 0 0 0 0 0000h r74 (4ah) mic bias control micb_ena micb_sel 0 0 0 0 0 0 mic_det_e na 0 0 mcdthr[2:0] mcdscthr[1:0] 0000h r76 (4ch) output control 0 0 0 0 out4_vroi out3_vroi out2_vroi out1_vroi 0 0 0 output_d rain_ena 0 out2_fb 0 out1_fb 0000h r77 (4dh) jack detect jdl_ena jdr_ena 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0000h r78 (4eh) anti pop control 0 0 0 0 0 0 anti_pop[1:0] dis_op_ln4[1:0] dis_op_ln3[1:0] dis_op_out2[1:0] dis_op_out1[1:0] 0000h r80 (50h) left input volume inl_ena inl_mute inl_zc 0 0 0 0 in_vu inl_vol[5:0] 0 0 0040h r81 (51h) right input volume inr_ena inr_mute inr_zc 0 0 0 0 in_vu inr_vol[5:0] 0 0 0040h r88 (58h) left mixer control mixoutl_ ena 0 0 dacr_to_ mixoutl dacl_to_ mixoutl 0 0 0 0 0 0 0 0 in3l_to_m ixoutl inr_to_mi xoutl inl_to_mi xoutl 0800h r89 (59h) right mixer control mixoutr_ ena 0 0 dacr_to_ mixoutr dacl_to_ mixoutr 0 0 0 0 0 0 0 in3r_to_m ixoutr 0 inr_to_mi xoutr inl_to_mi xoutr 1000h r92 (5ch) out3 mixer control out3_ena 0 0 0 dacl_to_ out3 0 0 mixinl_to _out3 0 0 0 0 out4_to_ out3 0 0 mixoutl_t o_out3 0000h r93 (5dh) out4 mixer control out4_ena 0 0 dacr_to_ out4 dacl_to_ out4 out4_att n mixinr_to _out4 0 0 0 0 0 0 out3_to_ out4 mixoutr_ to_out4 mixoutl_t o_out4 0000h r96 (60h) output left mixer volume 0 0 0 0 in3l_mixoutl_vol[2:0] 0 inr_mixoutl_vol[2:0] 0 inl_mixoutl_vol[2:0] 0 0000h r97 (61h) output right mixer volume in3r_mixoutr_vol[2:0] 0 0 0 0 0 inr_mixoutr_vol[2:0] 0 inl_mixoutr_vol[2:0] 0 0000h r98 (62h) input mixer volume l 0 0 0 0 in3l_mixinl_vol[2:0] 0 0 0 0 0 in2l_mixinl_vol[2:0] inl_mixinl _vol 0000h r99 (63h) input mixer volume r in3r_mixinr_vol[2:0] 0 0 0 0 0 in2r_mixinr_vol[2:0] 0 0 0 0 inr_mixin r_vol 0000h r100 (64h) input mixer volume out4_mixi n_dst 0 0 0 0 0 0 0 0 0 0 0 out4_mixin_vol[2:0] 0 0000h r104 (68h) out1l volume out1l_en a out1l_mu te out1l_zc 0 0 0 0 out1_vu out1l_vol[5:0] 0 0 00e4h r105 (69h) out1r volume out1r_en a out1r_mu te out1r_zc 0 0 0 0 out1_vu out1r_vol[5:0] 0 0 00e4h r106 (6ah) out2l volume out2l_en a out2l_mu te out2l_zc 0 0 0 0 out2_vu out2l_vol[5:0] 0 0 00e4h
wm8350 production data w pd, march 2010, rev 4.2 216 reg name 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 default r107 (6bh) out2r volume out2r_en a out2r_mu te out2r_zc 0 0 out2r_inv out2r_inv _mute out2_vu out2r_vol[5:0] 0 0 02e4h r111 (6fh) beep volume in3r_to_o ut2r 0 0 0 0 0 0 0 in3r_out2r_vol[2:0] 0 0 0 0 0 0000h r112 (70h) ai formating aif_bclk_i nv 0 aif_tri aif_lrclk _inv aif_wl[1:0] aif_fmt[1:0] 0 0 0 0 0 0 0 0 0a00h r113 (71h) adc dac comp 0 0 0 0 0 0 0 0 dac_com p dac_com pmode adc_com p adc_com pmode 0 0 0 loopback 0000h r114 (72h) ai adc control 0 0 0 0 0 0 0 0 aifadc_pd aifadcl_s rc aifadcr_s rc aifadc_td m_chan aifadc_td m 0 0 0 0020h r115 (73h) ai dac control 0 bclk_mst r 0 0 0 0 0 0 aifdac_pd dacl_src dacr_src aifdac_td m_chan aifdac_td m 0 dac_boost[1:0] 0020h r128 (80h) gpio debounce 0 0 0 gp12_db (s) gp11_db (s) gp10_db (s) gp9_db (s) gp8_db (s) gp7_db (s) gp6_db (s) gp5_db (s) gp4_db (s) gp3_db (s) gp2_db (s) gp1_db (s) gp0_db (s) 1fffh r129 (81h) gpio pin pull up control 0 0 0 gp12_pu (ms) gp11_pu (ms) gp10_pu (ms) gp9_pu (ms) gp8_pu (ms) gp7_pu (ms) gp6_pu (ms) gp5_pu (ms) gp4_pu (ms) gp3_pu (ms) gp2_pu (ms) gp1_pu (ms) gp0_pu (ms) 0000h 0000h 0000h 0010h r130 (82h) gpio pull down control 0 0 0 gp12_pd (ms) gp11_pd (ms) gp10_pd (ms) gp9_pd (ms) gp8_pd (ms) gp7_pd (ms) gp6_pd (ms) gp5_pd (ms) gp4_pd (ms) gp3_pd (ms) gp2_pd (ms) gp1_pd (ms) gp0_pd (ms) 0000h 0000h 0110h 0000h r131 (83h) gpio interrupt mode 0 0 0 gp12_intm ode (s) gp11_intm ode (s) gp10_intm ode (s) gp9_intm ode (s) gp8_intm ode (s) gp7_intm ode (s) gp6_intm ode (s) gp5_intm ode (s) gp4_intm ode (s) gp3_intm ode (s) gp2_intm ode (s) gp1_intm ode (s) gp0_intm ode (s) 0000h r133 (85h) gpio control 0 0 0 0 0 0 0 0 gp_dbtime[1:0] (s) 0 0 0 0 0 0 0000h r134 (86h) gpio configuration (i/o) 0 0 0 gp12_dir (ms) gp11_dir (ms) gp10_dir (ms) gp9_dir (ms) gp8_dir (ms) gp7_dir (ms) gp6_dir (ms) gp5_dir (ms) gp4_dir (ms) gp3_dir (ms) gp2_dir (ms) gp1_dir (ms) gp0_dir (ms) 0ffch 0cffh 09fah 0bfbh r135 (87h) gpio pin polarity / type 0 0 0 gp12_cfg (ms) gp11_cfg (ms) gp10_cfg (ms) gp9_cfg (ms) gp8_cfg (ms) gp7_cfg (ms) gp6_cfg (ms) gp5_cfg (ms) gp4_cfg (ms) gp3_cfg (ms) gp2_cfg (ms) gp1_cfg (ms) gp0_cfg (ms) 0ffch 0c1fh 0df6h 0ffdh r140 (8ch) gpio function select 1 gp3_fn[3:0] (ms) gp2_fn[3:0] (ms) gp1_fn[3:0] (ms) gp0_fn[3:0] (ms) 0013h 0000h 1310h 0310h
production data wm8350 w pd, march 2010, rev 4.2 217 reg name 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 default r141 (8dh) gpio function select 2 gp7_fn[3:0] (ms) gp6_fn[3:0] (ms) gp5_fn[3:0] (ms) gp4_fn[3:0] (ms) 0000h 1110h 0003h 0001h r142 (8eh) gpio function select 3 gp11_fn[3:0] (ms) gp10_fn[3:0] (ms) gp9_fn[3:0] (ms) gp8_fn[3:0] (ms) 0000h 0013h 2000h 2300h r143 (8fh) gpio function select 4 0 0 0 0 0 0 0 0 0 0 0 0 gp12_fn[3:0] (ms) 0003h 0003h 0000h 0003h r144 (90h) digitiser control (1) auxadc_e na (s) auxadc_c tc (s) auxadc_p oll (s) auxadc_h ib_mode (s) 0 0 0 0 auxadc_s el8 (s) auxadc_s el7 (s) auxadc_s el6 (s) auxadc_s el5 (s) auxadc_s el4 (s) auxadc_s el3 (s) auxadc_s el2 (s) auxadc_s el1 (s) 0000h r145 (91h) digitiser control (2) 0 0 auxadc_maskmode[1: 0] (s) 0 auxadc_crate[2:0] (s) 0 0 0 0 0 auxadc_c al (s) auxadc_r bmode (s) auxadc_ wait (s) 0002h r152 (98h) aux1 readback 0 auxadc_scale1[1:0] auxadc_r ef1 auxadc_data1[11:0] 7000h r153 (99h) aux2 readback 0 auxadc_scale2[1:0] auxadc_r ef2 auxadc_data2[11:0] 7000h r154 (9ah) aux3 readback 0 auxadc_scale3[1:0] auxadc_r ef3 auxadc_data3[11:0] 7000h r155 (9bh) aux4 readback 0 auxadc_scale4[1:0] auxadc_r ef4 auxadc_data4[11:0] 7000h r156 (9ch) usb voltage readback 0 0 0 0 auxadc_data_usb[11:0] 0000h r157 (9dh) line voltage readback 0 0 0 0 auxadc_data_line[11:0] 0000h r158 (9eh) batt voltage readback 0 0 0 0 auxadc_data_batt[11:0] 0000h r159 (9fh) chip temp readback 0 0 0 0 auxadc_data_chiptemp[11:0] 0000h r163 (a3h) generic comparator control 0 0 0 0 0 0 0 0 0 0 0 0 dcmp4_en a (s) dcmp3_en a (s) dcmp2_en a (s) dcmp1_en a (s) 0000h r164 (a4h) generic comparator 1 dcmp1_srcsel[2:0] (s) dcmp1_gt dcmp1_thr[11:0] 0000h r165 (a5h) generic comparator 2 dcmp2_srcsel[2:0] (s) dcmp2_gt dcmp2_thr[11:0] 0000h r166 (a6h) generic comparator 3 dcmp3_srcsel[2:0] (s) dcmp3_gt dcmp3_thr[11:0] 0000h r167 (a7h) generic comparator 4 dcmp4_srcsel[2:0] (s) dcmp4_gt dcmp4_thr[11:0] 0000h
wm8350 production data w pd, march 2010, rev 4.2 218 reg name 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 default r168 (a8h) battery charger control 1 chg_ena (kms) 0 0 chg_eoc_sel[2:0] (k) chg_tric kle_temp _choke (ks) chg_tric kle_usb_ choke (ks) chg_reco ver_t (ks) chg_end_ act (ks) chg_fast (kms) chg_fast _usb_thr ottle (ks) chg_ntc_ mon (m) chg_batt _hot_mon (m) chg_batt _cold_mo n (m) chg_chip _temp_mo n (km) a00fh a00fh a00fh a00fh r169 (a9h) battery charger control 2 chg_acti ve (m) chg_paus e (s) chg_sts[1:0] chg_time[3:0] (km) chg_mask _wall_fb (ks) chg_tric kle_sel (k) chg_vsel[1:0] (k) chg_isel[3:0] (k) 0b06h r170 (aah) battery charger control 3 0 0 0 0 0 0 0 0 chg_frc (ks) chg_throttle_t[1:0] (k) 0 0 0 0 0 0000h r172 (ach) current sink driver a cs1_ena (s) 0 0 cs1_hib_m ode (s) 0 0 0 0 0 0 cs1_isel[5:0] (s) 0000h r173 (adh) csa flash control cs1_flas h_mode (s) cs1_trigs rc (s) cs1_drive (ms) cs1_flas h_rate (s) 0 0 cs1_flash_dur[1:0] (s) 0 0 cs1_off_ramp[1:0] (s) 0 0 cs1_on_ramp[1:0] (s) 0000h r174 (aeh) current sink driver b cs2_ena (s) 0 0 cs2_hib_m ode (s) 0 0 0 0 0 0 cs2_isel[5:0] (s) 0000h r175 (afh) csb flash control cs2_flas h_mode (s) cs2_trigs rc (s) cs2_drive (ms) cs2_flas h_rate (s) 0 0 cs2_flash_dur[1:0] (s) 0 0 cs2_off_ramp[1:0] (s) 0 0 cs2_on_ramp[1:0] (s) 0000h r176 (b0h) dcdc/ldo requested ls_ena (ms) 0 0 0 ldo4_ena (ms) ldo3_ena (ms) ldo2_ena (ms) ldo1_ena (ms) 0 0 dc6_ena (ms) dc5_ena (ms) dc4_ena (ms) dc3_ena (ms) dc2_ena (ms) dc1_ena (ms) 0000h r177 (b1h) dcdc active options dcdc_dis clks (s) 0 puto[1:0] (s) 0 0 0 0 0 0 dc6_activ e (s) 0 dc4_activ e (s) dc3_activ e (s) 0 dc1_activ e (s) 032dh r178 (b2h) dcdc sleep options 0 0 0 0 0 0 0 0 0 0 dc6_slee p (s) 0 dc4_slee p (s) dc3_slee p (s) 0 dc1_slee p (s) 0000h r179 (b3h) power-check comparator 0 pccmp_er ract (s) 0 pccomp_ hib_mode 0 0 0 0 0 pccmp_off_thr[2:0] (km) 0 pccmp_on_thr[2:0] (km) 0025h 0025h 0025h 0025h r180 (b4h) dcdc1 control dc1_cap[1:0] (s) 0 0 dc1_disov p (ms) dc1_opfl t 0 0 0 dc1_vsel[6:0] (ms) 000eh 0006h 0012h 0062h r181 (b5h) dcdc1 timeouts dc1_erract[1:0] (ms) dc1_enslot[3:0] (ms) dc1_sdslot[3:0] 0 0 0 0 0 0 0000h 1000h 0400h 0800h r182 (b6h) dcdc1 low power 0 dc1_hib_mode[2:0] 0 0 dc1_hib_trig[1:0] (ms) 0 dc1_vimg[6:0] 1006h
production data wm8350 w pd, march 2010, rev 4.2 219 reg name 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 default r183 (b7h) dcdc2 control 0 dc2_mode (s) 0 dc2_hib_m ode (s) 0 0 dc2_hib_trig[1:0] (s) 0 dc2_ilim (ms) 0 dc2_rmph (ms) dc2_rmpl (ms) 0 dc2_fbsrc[1:0] (ms) 0018h r184 (b8h) dcdc2 timeouts dc2_erract[1:0] (ms) dc2_enslot[3:0] (ms) dc2_sdslot[3:0] 0 0 0 0 0 0 0000h 0000h 0000h 0000h r186 (bah) dcdc3 control 0 0 0 0 dc3_disov p (ms) dc3_opfl t 0 0 0 dc3_vsel[6:0] (ms) 0000h 0026h 002eh 000eh r187 (bbh) dcdc3 timeouts dc3_erract[1:0] (ms) dc3_enslot[3:0] (ms) dc3_sdslot[3:0] 0 0 0 0 0 0 0000h 0400h 0000h 0000h r188 (bch) dcdc3 low power 0 dc3_hib_mode[2:0] (ms) 0 0 dc3_hib_trig[1:0] (ms) 0 dc3_vimg[6:0] 0006h r189 (bdh) dcdc4 control 0 0 0 0 dc4_disov p (ms) dc4_opfl t 0 0 0 dc4_vsel[6:0] (ms) 0000h 0056h 000eh 0006h r190 (beh) dcdc4 timeouts dc4_erract[1:0] (ms) dc4_enslot[3:0] (ms) dc4_sdslot[3:0] 0 0 0 0 0 0 0000h 0400h 0000h 0c00h r191 (bfh) dcdc4 low power 0 dc4_hib_mode[2:0] (ms) 0 0 dc4_hib_trig[1:0] (ms) 0 dc4_vimg[6:0] 0006h r192 (c0h) dcdc5 control 0 dc5_mode (s) 0 dc5_hib_m ode (s) 0 0 dc5_hib_trig[1:0] (s) 0 dc5_ilim (ms) 0 dc5_rmph (ms) dc5_rmpl (ms) 0 dc5_fbsrc[1:0] (ms) 0008h r193 (c1h) dcdc5 timeouts dc5_erract[1:0] (ms) dc5_enslot[3:0] (ms) dc5_sdslot[3:0] 0 0 0 0 0 0 0000h 0000h 0000h 0000h r195 (c3h) dcdc6 control dc6_cap[1:0] 0 0 dc6_disov p (ms) dc6_opfl t 0 0 0 dc6_vsel[6:0] (ms) 0000h 000ah 0026h 0026h r196 (c4h) dcdc6 timeouts dc6_erract[1:0] (ms) dc6_enslot[3:0] (ms) dc6_sdslot[3:0] 0 0 0 0 0 0 0000h 1000h 0c00h 0400h
wm8350 production data w pd, march 2010, rev 4.2 220 reg name 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 default r197 (c5h) dcdc6 low power 0 dc6_hib_mode[2:0] (ms) 0 0 dc6_hib_trig[1:0] (ms) 0 dc6_vimg[6:0] 0006h r199 (c7h) limit switch control ls_erract[1:0] (ms) ls_enslot[3:0] (ms) ls_sdslot[3:0] 0 ls_hib_mo de 0 0 ls_hib_pr ot ls_prot 0003h r200 (c8h) ldo1 control 0 ldo1_swi (ms) 0 0 0 ldo1_opf lt 0 0 0 0 0 ldo1_vsel[4:0] (ms) 001ch 0002h 001ch 0002h r201 (c9h) ldo1 timeouts ldo1_erract[1:0] (ms) ldo1_enslot[3:0] (ms) ldo1_sdslot[3:0] 0 0 0 0 0 0 0000h 0c00h 0000h 0000h r202 (cah) ldo1 low power 0 0 ldo1_hib_mode[1:0] (ms) 0 0 ldo1_hib_trig[1:0] (ms) 0 0 0 ldo1_vimg[4:0] 001ch r203 (cbh) ldo2 control 0 ldo2_swi (ms) 0 0 0 ldo2_opf lt 0 0 0 0 0 ldo2_vsel[4:0] (ms) 001bh 001fh 0010h 001ah r204 (cch) ldo2 timeouts ldo2_erract[1:0] (ms) ldo2_enslot[3:0] (ms) ldo2_sdslot[3:0] 0 0 0 0 0 0 0000h 0800h 0800h 0000h r205 (cdh) ldo2 low power 0 0 ldo2_hib_mode[1:0] (ms) 0 0 ldo2_hib_trig[1:0] (ms) 0 0 0 ldo2_vimg[4:0] 001ch r206 (ceh) ldo3 control 0 ldo3_swi (ms) 0 0 0 ldo3_opf lt 0 0 0 0 0 ldo3_vsel[4:0] (ms) 001bh 001ch 0015h 001fh r207 (cfh) ldo3 timeouts ldo3_erract[1:0] (ms) ldo3_enslot[3:0] (ms) ldo3_sdslot[3:0] 0 0 0 0 0 0 0000h 0400h 0000h 0000h r208 (d0h) ldo3 low power 0 0 ldo3_hib_mode[1:0] (ms) 0 0 ldo3_hib_trig[1:0] (ms) 0 0 0 ldo3_vimg[4:0] 001ch r209 (d1h) ldo4 control 0 ldo4_swi (ms) 0 0 0 ldo4_opf lt 0 0 0 0 0 ldo4_vsel[4:0] (ms) 001bh 0004h 001ah 001fh
production data wm8350 w pd, march 2010, rev 4.2 221 reg name 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 default r210 (d2h) ldo4 timeouts ldo4_erract[1:0] (ms) ldo4_enslot[3:0] (ms) ldo4_sdslot[3:0] 0 0 0 0 0 0 0000h 0800h 0000h 0000h r211 (d3h) ldo4 low power 0 0 ldo4_hib_mode[1:0] (ms) 0 0 ldo4_hib_trig[1:0] (ms) 0 0 0 ldo4_vimg[4:0] 001ch r215 (d7h) vcc_fault masks ls_fault (s) 0 0 0 ldo4_fau lt (s) ldo3_fau lt (s) ldo2_fau lt (s) ldo1_fau lt (s) 0 0 dc6_faul t (s) dc5_faul t (s) dc4_faul t (s) dc3_faul t (s) dc2_faul t (s) dc1_faul t (s) 0000h r216 (d8h) main bandgap control mbg_load _fuses 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 001fh r217 (d9h) osc control osc_load _fuses (k) 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0000h r218 (dah) rtc tick control rtc_tick_ ena (kms) rtc_ticks ts (k) rtc_clks rc (kms) osc32k_e na (kms) 0 0 rtc_trim[9:0] (k) 9000h 9000h 9000h 9000h r219 (dbh) security1 security[15:0] (s) 0000h r224 (e0h) signal overrides 0 0 0 0 wall_fb_ gt_batt_ ovrde usb_fb_g t_batt_o vrde fll_ok_o vrde deb_tick_ ovrde uvlo_b_o vrde rtc_alar m_ovrde 0 0 line_gt_b att_ovrd e line_gt_v rtc_ovrd e usb_gt_li ne_ovrde batt_gt_ usb_ovrd e 0000h r225 (e1h) dcdc/ldo status ls_sts (s) 0 0 0 ldo4_sts (s) ldo3_sts (s) ldo2_sts (s) ldo1_sts (s) 0 0 dc6_sts (s) dc5_sts (s) dc4_sts (s) dc3_sts (s) dc2_sts (s) dc1_sts (s) 0000h r226 (e2h) charger overides/status chg_batt _hot_ovr de chg_batt _cold_ov rde 0 0 chg_end_ ovrde 0 0 0 0 0 0 0 0 chg_batt _lt_3p9_o vrde chg_batt _lt_3p1_o vrde chg_batt _lt_2p85_ ovrde 0000h r227 (e3h) misc overrides 0 0 cs2_not_ reg_ovrd e cs1_not_ reg_ovrd e 0 usb_limit _ovrde 0 0 aux_dco mp4_ovrd e aux_dco mp3_ovrd e aux_dco mp2_ovrd e aux_dco mp1_ovrd e hyst_uvl o_ok_ovr de chip_gt11 5_ovrde chip_gt14 0_ovrde 0 0000h r228 (e4h) supply overrides/status 1 0 0 0 0 0 0 0 0 0 0 ovrv_dc6 _ovrde 0 ovrv_dc4 _ovrde ovrv_dc3 _ovrde 0 ovrv_dc1 _ovrde 0000h r229 (e5h) supply overrides/status 2 ovcr_ls_ ovrde 0 0 0 undv_ldo 4_ovrde undv_ldo 3_ovrde undv_ldo 2_ovrde undv_ldo 1_ovrde 0 0 undv_dc6 _ovrde undv_dc5 _ovrde undv_dc4 _ovrde undv_dc3 _ovrde undv_dc2 _ovrde undv_dc1 _ovrde 0000h r230 (e6h) gpio pin status 1 (n) 1 (n) 1 (n) gp12_lvl gp11_lvl gp10_lvl gp9_lvl gp8_lvl gp7_lvl gp6_lvl gp5_lvl gp4_lvl gp3_lvl gp2_lvl gp1_lvl gp0_lvl e000h r231 (e7h) comparotor overrides usb_fb_o vrde wall_fb_ ovrde batt_fb_ ovrde 0 codec_jc k_det_l_o vrde codec_jc k_det_r_ ovrde codec_mi cscd_ovr de codec_mi cd_ovrde 0 0 0 0 0 0 0 0 0000h r233 (e9h) state machine status 0 0 0 0 0 usb_sm[2:0] 0 chg_sm[2:0] main_sm[3:0] 0000h r248 (f8h) dcdc1 test controls 0 0 0 0 0 0 0 0 0 0 0 dc1_forc e_pwm (s) 0 0 0 0 1000h
wm8350 production data w pd, march 2010, rev 4.2 222 reg name 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 default r250 (fah) dcdc3 test controls 0 0 0 0 0 0 0 0 0 0 0 dc3_forc e_pwm (s) 0 0 0 0 1000h r251 (fbh) dcdc4 test controls 0 0 0 0 0 0 0 0 0 0 0 dc4_forc e_pwm (s) 0 0 0 0 1000h r253 (fdh) dcdc6 test controls 0 0 0 0 0 0 0 0 0 0 0 dc6_forc e_pwm (s) 0 0 0 0 1000h
production data wm8350 w pd, march 2010, rev 4.2 223 27 register bits by address register address bit label default description r efer to r0 (00h) reset/id 15:0 sw_reset/chip_id[15:0] 0110_0001_0100_0011 reading this register returns 6143h. never reset. register 00h reset/id register address bit label default description refer to r1 (01h) id 15:12 chip_rev[3:0] the functional silicon revision - this tracks changes in functionality which are separate from rom mask settings 11:10 conf_sts[1:0] the state of the configuration pins. this selects what register defaults should be. 7:0 cust_id[7:0] the chip revision number register 01h id register address bit label default description refer to r2 (02h) revision 7:0 mask_rev[7:0] the rom mask id register 02h revision register address bit label default description refer to r3 (03h) system control 1 15 chip_on 0 indicates whether the system is on or off. writing 0 to this bit powers down the whole chip. registers which are affected by state machine reset will get reset. once the system is turned off it can be restarted by any of the valid on event. reset by state machine. default held in metal mask. 14 sys_rst 0 allows the processors to reboot itself 0 = do nothing 1 = perform a processor reset by asserting the /rst and /memrst (gpio) pins for the programmed duration protected by security key. reset by state machine. default held in metal mask. 13 powercycle 0 action to take on a fault (if response is set to shutdown system): 0 = shut down 1 = shutdown everything then go through startup sequence. i.e. reboot the system. 12 vcc_fault_ov 1 include over voltage in the /vcc_fault pin (alternative gpio function) 0 = do not include over voltage in the /vcc_fault signal 1 = include the over voltage in the /vcc_fault signal reset by state machine. default held in metal mask.
wm8350 production data w pd, march 2010, rev 4.2 224 register address bit label default description refer to 11:10 rstb_to[1:0] 11 time that the /rst pin and /memrst output is held low after the chip reaches the active state. 00 = 15ms 01 = 30ms 10 = 60ms 11 = 120ms default held in metal mask. 9 bg_sleep 0 bandgap sleep mode 0 = never in sleep mode 1 = sleep mode is controlled by main sm default held in metal mask. 7 wdog_debug 0 halts watchdog timer for system debugging 0 = normal operation 1 = wdog halt protected by security key. 6 chip_reset_ena 0 [no description available] reset by state machine. 5 mem_valid 0 indicates that the contents of external memory are still valid. this bit is cleared on startup and whenever /memrst is asserted from the main state machine. the system software should set this bit once the external memory has been set up. controlled in hibernate mode by memrst_hib_mode 0 = external memory is not valid and needs restoring. 1 = external memory is valid. reset when /memrst is asserted. 4 chip_set_up 0 a spare register bit that can be used by the system to say if the chip has been configured. it is reset by por. 3 on_deb_t 0 on pin shutdown function debounce time 0 = 10s 1 = 5s protected by security key. 1 on_pol 1 1 1 1 on pin polarity: 0 = active high (on) 1 = active low (/on) protected by security key. reset by state machine. default held in metal mask. 0 irq_pol 0 irq pin polarity: 0 = active low (/irq) 1 = active high (irq) reset by state machine. default held in metal mask. register 03h system control 1
production data wm8350 w pd, march 2010, rev 4.2 225 register address bit label default description refer to r4 (04h) system control 2 15 usb_suspend_8ma 0 usb suspend mode with 8ma option 0 = usb is not suspended. 1 = usb is suspend with 8ma option enabled the register bit defaults to 0, when a reset happens or line wm8350 production data w pd, march 2010, rev 4.2 226 register address bit label default description refer to 5:4 wdog_mode[1:0] 00 00 01 00 00 = disabled 01 = sys_wdog_to interrupt on time-out 10 = wkup_wdog_rst interrupt and system reset on time-out 11 = sys_wdog_to interrupt on first time-out, wkup_wdog_rst interrupt and system reset on second time-out protected by security key. reset by state machine. default held in metal mask. 2:0 wdog_to[2:0] 100 watchdog timeout (seconds) the timer is reset to this value when a heartbeat si gnal edge is detected or the host writes to the watchdog control register. 000 = 0.125s ? (time doubles with each step) 101 = 4s 11x = reserved protected by security key. register 04h system control 2 register address bit label default description refer to r5 (05h) system hibernate 15 hibernate 0 determines what state the chip should operate in. 0 = active state 1 = hibernate state the register bit defaults to 0, when a reset happens reset by state machine. default held in metal mask. 7 wdog_hib_mode 0 watchdog behaviour in hibernate state 0 = wdog disabled in hibernate 1 = wdog controlled by wdog_mode in hibernate 6 hib_startup_seq 0 direction to take when going from hibernate state to the active state. 0 = hibernate to active without going through startup state 1 = hibernate to active goes though startup sequence 5 reg_reset_hib_mode 0 action of the internal register reset signal when going from hibernate to active. 0 = do a register reset when leaving the hibernate state. 1 = do not do a register reset when leaving the hibernate state 4 rst_hib_mode 0 /rst pin state in hibernate mode: 0 = asserted (low) 1 = not asserted (high) 3 irq_hib_mode 0 irq pin state in hibernate mode 0 = normal operation 1 = forced to indicate there is no irq 2 memrst_hib_mode 0 /memrst (alternative gpio function) pin state in hibernate mode 0 = asserted (low) 1 = not asserted (high)
production data wm8350 w pd, march 2010, rev 4.2 227 register address bit label default description refer to 1 pccomp_hib_mode 0 function of the hysteresis comp in hibernate. 0 = hysteresis comp is not used in hibernate 1 = hysteresis comp is on in hibernate 0 tempmon_hib_mode 0 function of the temp monitoring in hibernate. 0 = temp monitoring is off in hibernate state 1 = temp monitoring is on in the hibernate state register 05h system hibernate register address bit label default description refer to r6 (06h) interface control 15 use_dev_pins 1 selects which pins to use for the 2-wire control: 0 = use 2-wire i/f pins as 2-wire interface 1 = use gpio 10 and 11 as 2-wire interface, e.g. to download settings from pic. only applies when config pins[1:0] = 00. reset by state machine. 14:13 dev_addr[1:0] 00 selects device address (only valid when conf_sts = 00) 00 = 0x34 01 = 0x36 10 = 0x3c 11 = 0x3e reset by state machine. 12 config_done 0 tells the system that the pic micro has completed its programming. 0 = programming still to be done 1 = programming complete only applies when config pins[1:0] = 00. reset by state machine. 11 reconfig_at_on 1 selects whether to reset the registers in the off state and whether to reload the device configuration from the pic when an on event occurs. 0 = do not reset registers in the off state. do not load configuration data when an on event occurs. 1 = reset registers in the off state. load configuration from the pic when an on event occurs. note that, in development mode, the device configuration from the pic is always loaded when first powering up the chip. this bit must always be set to default (1) in custom modes 01, 10 and 11. 9 autoinc 1 enables address auto-increment 0 = disabled 1 = enabled reset by state machine. 3 spi_cfg 0 0 0 0 controls the sdout (gpio6) pin operation in 4 wire mode 0 = sdout output is cmos 1 = sdout output is open drain note: spi_4wire must be set for this to take effect. protected by security key. default held in metal
wm8350 production data w pd, march 2010, rev 4.2 228 register address bit label default description refer to mask. 2 spi_4wire 0 0 0 0 selects 3-wire or 4-wire spi mode 0 = 3-wire mode using bi-directional sdata pin 1 = 4 wire mode using sdout (gpio6) note: spi_3wire must be set for this to take effect. protected by security key. default held in metal mask. 1 spi_3wire 0 0 0 0 selects 2- or 3-/4-wire mode. 0 = 2-wire mode 1 = 3/4 wire mode protected by security key. default held in metal mask. register 06h interface control register address bit label default description refer to r8 (08h) power mgmt (1) 15:14 codec_isel[1:0] 10 codec analogue current level select 00 = x 1.5 01 = x 1.0 10 = x 0.75 11 = x 0.5 13 vbuf_ena 0 forces on the tie-off amplifiers 0 = disabled 1 = enabled 10 output_drain_ena 0 enables a drain on the outputs allowing the amplifiers to shutdown more quickly. 0 = shutdown as normal 1 = sink current from an external capacitor, allowing faster shutdown. 8 mic_det_ena 0 enable mic detect: 0 = disabled 1 = enabled 5 bias_ena 0 enables bias to analogue audio codec circuitry 0 = disabled 1 = enabled 4 micb_ena 0 microphone bias enable 0 = off (high impedance output) 1 = on 2 vmid_ena 0 enables vmid resistor string 0 = disabled 1 = enabled 1:0 vmid[1:0] 00 resistor selection for vmid potential divider 00 = off 01 = vmid comes from 300k ? r-string 10 = vmid comes from 50k ? r-string 11 = vmid comes from 5k ? r-string register 08h power mgmt (1)
production data wm8350 w pd, march 2010, rev 4.2 229 register address bit label default description refer to r9 (09h) power mgmt (2) 11 in3r_ena 0 in3r amplifier enable 0 = disabled 1 = enabled 10 in3l_ena 0 in3l amplifier enable 0 = disabled 1 = enabled 9 inr_ena 0 right input pga enable 0 = disabled 1 = enabled 8 inl_ena 0 left input pga enable 0 = disabled 1 = enabled 7 mixinr_ena 0 right input mixer enable 0 = disabled 1 = enabled 6 mixinl_ena 0 left input mixer enable 0 = disabled 1 = enabled 5 out4_ena 0 out4 enable 0 = disabled 1 = enabled 4 out3_ena 0 out3 enable 0 = disabled 1 = enabled 1 mixoutr_ena 0 right output mixer enable 0 = disabled 1 = enabled 0 mixoutl_ena 0 left output mixer enable 0 = disabled 1 = enabled register 09h power mgmt (2) register address bit label default description refer to r10 (0ah) power mgmt (3) 7 in3r_to_out2r 0 beep mixer enable 3 out2r_ena 0 out2r enable 0 = disabled 1 = enabled 2 out2l_ena 0 out2l enable 0 = disabled 1 = enabled 1 out1r_ena 0 out1r enable 0 = disabled 1 = enabled 0 out1l_ena 0 out1l enable 0 = disabled 1 = enabled register 0ah power mgmt (3)
wm8350 production data w pd, march 2010, rev 4.2 230 register address bit label default description refer to r11 (0bh) power mgmt (4) 14 sysclk_ena 0 codec sysclk enable 0 = disabled 1 = enabled 13 adc_hpf_ena 1 high pass filter enable 0 = disabled 1 = enabled 8 toclk_ena 0 slow clock enable. used the zero cross timeout. 0 = disabled 1 = enabled 5 dacr_ena 0 right dac enable 0 = disabled 1 = enabled 4 dacl_ena 0 left dac enable 0 = disabled 1 = enabled 3 adcr_ena 0 right adc enable 0 = disabled 1 = enabled when adcr and adcl are used together as a stereo pair, then both adcs must be enabled together using a single register write to register r11 (0bh). 2 adcl_ena 0 left adc enable 0 = disabled 1 = enabled when adcr and adcl are used together as a stereo pair, then both adcs must be enabled together using a single register write to register r11 (0bh). register 0bh power mgmt (4) register address bit label default description refer to r12 (0ch) power mgmt (5) 12 codec_ena 0 master codec enable bit. until this bit is set, all codec registers are held in reset. 0 = all codec registers held in reset 1 = codec registers operate normally. reset by state machine. 11 rtc_tick_ena 1 1 1 1 real time clock control. 0 = rtc is disabled 1 = rtc is enabled. protected by security key. reset by state machine. default held in metal mask. 10 osc32k_ena 1 1 1 1 32khz crystal oscillator control 0 = 32khz osc is disabled 1 = 32khz osc is enabled protected by security key. reset by state machine. default held in metal mask. 9 chg_ena 1 charger control chg_ena bit selects battery charger current control 0 = set battery charger current to zero 1 = enable battery charge control protected by security key. reset by state machine. default held in metal mask.
production data wm8350 w pd, march 2010, rev 4.2 231 register address bit label default description refer to 8 sw_vrtc_ena 0 sw_vrtc control 0 = vrtc is not driven out on swvrtc pin 1 = vrtc is driven out on swvrtc pin reset by state machine. 7 auxadc_ena 0 auxadc control 0 = disabled 1 = enabled reset by state machine. 3 dcmp4_ena 0 digital comparator 4 enable 0 = disabled 1 = enabled reset by state machine. 2 dcmp3_ena 0 digital comparator 3 enable 0 = disabled 1 = enabled reset by state machine. 1 dcmp2_ena 0 digital comparator 2 enable 0 = disabled 1 = enabled reset by state machine. 0 dcmp1_ena 0 digital comparator 1 enable 0 = disabled 1 = enabled reset by state machine. register 0ch power mgmt (5) register address bit label default description refer to r13 (0dh) power mgmt (6) 15 ls_ena 0 limit switch enable 0 = disabled 1 = enabled note: internal conditions may prevent the converter from actually switching on - see dcdc/ldo status register for actual converter status. reset by state machine. default held in metal mask. 11 ldo4_ena 0 ldo4 enable 0 = disabled 1 = enabled note: internal conditions may prevent the converter from actually switching on - see dcdc/ldo status register for actual converter status. reset by state machine. default held in metal mask. 10 ldo3_ena 0 ldo3 enable 0 = disabled 1 = enabled note: internal conditions may prevent the converter from actually switching on - see dcdc/ldo status register for actual converter status. reset by state machine. default held in metal mask.
wm8350 production data w pd, march 2010, rev 4.2 232 register address bit label default description refer to 9 ldo2_ena 0 ldo2 enable 0 = disabled 1 = enabled note: internal conditions may prevent the converter from actually switching on - see dcdc/ldo status register for actual converter status. reset by state machine. default held in metal mask. 8 ldo1_ena 0 ldo1 enable 0 = disabled 1 = enabled note: internal conditions may prevent the converter from actually switching on - see dcdc/ldo status register for actual converter status. reset by state machine. default held in metal mask. 5 dc6_ena 0 dcdc6 converter enable 0 = disabled 1 = enabled note: internal conditions may prevent the converter from actually switching on - see dcdc/ldo status register for actual converter status. reset by state machine. default held in metal mask. 4 dc5_ena 0 dcdc5 converter enable 0 = disabled 1 = enabled note: internal conditions may prevent the converter from actually switching on - see dcdc/ldo status register for actual converter status. reset by state machine. default held in metal mask. 3 dc4_ena 0 dcdc4 converter enable 0 = disabled 1 = enabled note: internal conditions may prevent the converter from actually switching on - see dcdc/ldo status register for actual converter status. reset by state machine. default held in metal mask. 2 dc3_ena 0 dcdc3 converter enable 0 = disabled 1 = enabled note: internal conditions may prevent the converter from actually switching on - see dcdc/ldo status register for actual converter status. reset by state machine. default held in metal mask. 1 dc2_ena 0 dcdc2 converter enable 0 = disabled 1 = enabled note: internal conditions may prevent the converter from actually switching on - see dcdc/ldo status register for actual converter status. reset by state machine. default held in metal mask. 0 dc1_ena 0 dcdc1 converter enable 0 = disabled 1 = enabled note: internal conditions may prevent the converter from actually switching on - see dcdc/ldo status register for actual converter status. reset by state machine. default held in metal mask. register 0dh power mgmt (6)
production data wm8350 w pd, march 2010, rev 4.2 233 register address bit label default description refer to r14 (0eh) power mgmt (7) 1 cs2_ena 0 current sink 2 enable (isinkb pin) 0 = disabled 1 = enabled reset by state machine. 0 cs1_ena 0 current sink 1 enable (isinka pin) 0 = disabled 1 = enabled reset by state machine. register 0eh power mgmt (7) register address bit label default description refer to r16 (10h) rtc seconds/minute s 14:8 rtc_mins[6:0] 000_0000 rtc minutes; 0 to 59 6:0 rtc_secs[6:0] 000_0000 rtc seconds; 0 to 59 register 10h rtc seconds/minutes register address bit label default description refer to r17 (11h) rtc hours/day 10:8 rtc_day[2:0] 001 rtc day of the week register with range 1-7. 1 is sunday 5 rtc_hpm 0 rtc hours am/pm flag 0 = am 1 = pm only valid in 12 hour mode. 4:0 rtc_hrs[4:0] 0_0000 rtc hours register with 0-23 range in 24 hour mode and 1-12 in 12 hour mode. (bit 5 is used to indicate pm/not-am flag in 12 hour mode.) register 11h rtc hours/day register address bit label default description refer to r18 (12h) rtc date/month 12:8 rtc_mth[4:0] 0_0001 rtc month register with range 1-12. 5:0 rtc_date[5:0] 00_0001 rtc date register with range 1-31 register 12h rtc date/month register address bit label default description refer to r19 (13h) rtc year 13:8 rtc_yhundreds[5:0] 01_0100 rtc year hundreds register tied to 20(dec) 7:0 rtc_yunits[7:0] 0000_0000 rtc year units register with range 0-99. register 13h rtc year
wm8350 production data w pd, march 2010, rev 4.2 234 register address bit label default description refer to r20 (14h) alarm seconds/minute s 14:8 rtc_almmins[6:0] 000_0000 minutes alarm register with range 0-59. all 1's sets to 'don't care' state. note, during programming it is best to disable the alarm enable request bit to avoid false alarms. 6:0 rtc_almsecs[6:0] 000_0000 seconds alarm register with range 0-59. all 1's set to 'don't care' state. note, during programming it is best to disable the alarm enable request bit to avoid false alarms. register 14h alarm seconds/minutes register address bit label default description refer to r21 (15h) alarm hours/day 11:8 rtc_almday[3:0] 0000 day alarm register, with range 1-7, 1 = sunday. all 1's sets to 'don't care' state. note, during programming it is best to disable the alarm enable request bit to avoid false alarms. 5 rtc_almhpm 0 alarm hours am/pm flag 0 = am 1 = pm only applicable in 12 hour mode. in 24 hour mode set to 1 if rtc_almhrs is set to all 1?s ?don?t care? or 0 otherwise. 4:0 rtc_almhrs[4:0] 0_0000 hours alarm register with range 0-23 in 24 hours mode and 1-12 in 12 hour. in 12 hour mode bit 5 is used as pm/not-am flag. all 1's sets to 'don't care' state. note, during programming it is best to disable the alarm enable request bit to avoid false alarms. register 15h alarm hours/day register address bit label default description refer to r22 (16h) alarm date/month 12:8 rtc_almmth[4:0] 0_0000 month alarm register with range 1-12. all 1's sets to 'don't care' state. note, during programming it is best to disable the alarm enable request bit to avoid false alarms. 5:0 rtc_almdate[5:0] 00_0000 date alarm register with range 1-31. all 1's sets to 'don't care' state. note, during programming it is best to disable the alarm enable request bit to avoid false alarms. register 16h alarm date/month
production data wm8350 w pd, march 2010, rev 4.2 235 register address bit label default description refer to r23 (17h) rtc time control 15 rtc_bcd 0 rtc coding (applies to all time registers) 0 = binary 1 = bcd 14 rtc_12hr 0 rtc 12/24 hours mode 1 = 12 hours (msb of rtc_hrs indicates am/pm) 0 = 24 hours (msb of rtc_hrs is 0) 11 rtc_set 0 stops rtc seconds counter (instruction only) 0 = normal operation 1 = stop counter 10 rtc_sts 0 status of rtc seconds counter 0 = normal operation 1 = counter stopped 9 rtc_almset 1 stops alarms (instruction only) 0 = normal operation 1 = stop alarms it is recommended to stop alarms when setting the rtc alarm. this avoids false alarms. 8 rtc_almsts 1 actual status of alarm circuitry 0 = normal operation 1 = alarms stopped 6:4 rtc_pint[2:0] 010 selects frequency of periodic interrupt output pulse (32khz period duration) as shown below. when set time status is high, the periodic output is disabled. 000 = disabled 001 = 1 sec 010 = 1 min 011 = 1 hour 100 = 1 day 101 = 1 month 11x = disabled 3:0 rtc_dsw[3:0] 0000 divided square wave select. 0000 = disabled 0001 = 1hz 0010 = 2hz ? 1011 = 1024hz 1100 = 2048hz 1101 = 4096hz 1110 = 8192hz 1111 = 16384hz note: due to trim settings for crystal intolerances a single square wave period during seconds rollover may be decrease its on time period or increase its off time period by up to 8 32khz periods. register 17h rtc time control
wm8350 production data w pd, march 2010, rev 4.2 236 register address bit label default description refer to r24 (18h) system interrupts 13 oc_int 0 first-level over-current interrupt. note: this bit is cleared once read. 12 uv_int 0 first-level under-voltage interrupt. note: this bit is cleared once read. 9 cs_int 0 first-level current sink interrupt. note: this bit is cleared once read. 8 ext_int 0 first-level external interrupt. note: this bit is cleared once read. 7 codec_int 0 first-level codec interrupt. note: this bit is cleared once read. 6 gp_int 0 first-level gpio interrupt. note: this bit is cleared once read. 5 auxadc_int 0 first-level auxadc comparator interrupt. note: this bit is cleared once read. 4 rtc_int 0 first-level rtc interrupt. note: this bit is cleared once read. 3 sys_int 0 first-level system interrupt. note: this bit is cleared once read. 2 chg_int 0 first-level charger interrupt. note: this bit is cleared once read. 1 usb_int 0 first-level usb interrupt. note: this bit is cleared once read. 0 wkup_int 0 first-level wakeup interrupt. note: this bit is cleared once read. register 18h system interrupts register address bit label default description refer to r25 (19h) interrupt status 1 15 chg_batt_hot_eint 0 battery temp too hot. (rising edge triggered) note: this bit is cleared once read. 14 chg_batt_cold_eint 0 battery temp too cold. (rising edge triggered) note: this bit is cleared once read. 13 chg_batt_fail_eint 0 battery fail. (rising edge triggered) note: this bit is cleared once read. 12 chg_to_eint 0 charger timeout. (rising edge triggered) note: this bit is cleared once read. 11 chg_end_eint 0 charging final stage. (rising edge triggered) note: this bit is cleared once read. 10 chg_start_eint 0 charging started. (rising edge triggered) note: this bit is cleared once read. 9 chg_fast_rdy_eint 0 indicates that the charger is ready to go into fast charge. (rising edge triggered) note: this bit is cleared once read.
production data wm8350 w pd, march 2010, rev 4.2 237 register address bit label default description refer to 7 rtc_per_eint 0 rtc periodic interrupt. (rising edge triggered) note: this bit is cleared once read. 6 rtc_sec_eint 0 rtc 1s rollover complete (1hz tick). (rising edge triggered) note: this bit is cleared once read. 5 rtc_alm_eint 0 rtc alarm signalled. (rising edge triggered) note: this bit is cleared once read. 2 chg_vbatt_lt_3p9_eint 0 battery voltage < 3.9 interrupt. (rising edge triggered) note: this bit is cleared once read. 1 chg_vbatt_lt_3p1_eint 0 battery voltage < 3.1 interrupt. (rising edge triggered) note: this bit is cleared once read. 0 chg_vbatt_lt_2p85_eint 0 battery voltage < 2.85 interrupt. (rising edge triggered) note: this bit is cleared once read. register 19h interrupt status 1 register address bit label default description refer to r26 (1ah) interrupt status 2 13 cs1_eint 0 flag to indicate drain voltage can no longer be regulated and output current may be out of spec. (rising edge triggered) note: this bit is cleared once read. 12 cs2_eint 0 flag to indicate drain voltage can no longer be regulated and output current may be out of spec. (rising edge triggered) note: this bit is cleared once read. 10 usb_limit_eint 0 usb limit switch interrupt. (rising edge triggered) note: this bit is cleared once read. 8 auxadc_datardy_eint 0 auxiliary data ready. (rising edge triggered) note: this bit is cleared once read. 7 auxadc_dcomp4_eint 0 dcomp4 interrupt. (rising edge triggered) note: this bit is cleared once read. 6 auxadc_dcomp3_eint 0 dcomp3 interrupt. (rising edge triggered) note: this bit is cleared once read. 5 auxadc_dcomp2_eint 0 dcomp2 interrupt. (rising edge triggered) note: this bit is cleared once read. 4 auxadc_dcomp1_eint 0 dcomp1 interrupt. (rising edge triggered) note: this bit is cleared once read.
wm8350 production data w pd, march 2010, rev 4.2 238 register address bit label default description refer to 3 sys_hyst_comp_fail_eint 0 hysteresis comparator indication that line or batt is less that shutdown threshold. (rising edge triggered) note: this bit is cleared once read. 2 sys_chip_gt 115_eint 0 chip over 115c temp limit. (rising edge triggered) note: this bit is cleared once read. 1 sys_chip_gt 140_eint 0 chip over 140c temp limit. (rising edge triggered) note: this bit is cleared once read. 0 sys_wdog_to_eint 0 watchdog timeout has occurred. (rising edge triggered) note: this bit is cleared once read. register 1ah interrupt status 2 register address bit label default description refer to r28 (1ch) under voltage interrupt status 11 uv_ldo4_eint 0 ldo4 under-voltage interrupt. (rising edge triggered) note: this bit is cleared once read. 10 uv_ldo3_eint 0 ldo3 under-voltage interrupt. (rising edge triggered) note: this bit is cleared once read. 9 uv_ldo2_eint 0 ldo2 under-voltage interrupt. (rising edge triggered) note: this bit is cleared once read. 8 uv_ldo1_eint 0 ldo1 under-voltage interrupt. (rising edge triggered) note: this bit is cleared once read. 5 uv_dc6_eint 0 dcdc6 under-voltage interrupt. (rising edge triggered) note: this bit is cleared once read. 4 uv_dc5_eint 0 dcdc5 under-voltage interrupt. (rising edge triggered) note: this bit is cleared once read. 3 uv_dc4_eint 0 dcdc4 under-voltage interrupt. (rising edge triggered) note: this bit is cleared once read. 2 uv_dc3_eint 0 dcdc3 under-voltage interrupt. (rising edge triggered) note: this bit is cleared once read. 1 uv_dc2_eint 0 dcdc2 under-voltage interrupt. (rising edge triggered) note: this bit is cleared once read. 0 uv_dc1_eint 0 dcdc1 under-voltage interrupt. (rising edge triggered) note: this bit is cleared once read. register 1ch under voltage interrupt status
production data wm8350 w pd, march 2010, rev 4.2 239 register address bit label default description refer to r29 (1dh) over current interrupt status 15 oc_ls_eint 0 overcurrent interrupt. (rising edge triggered) note: this bit is cleared once read. register 1dh over current interrupt status register address bit label default description refer to r30 (1eh) gpio interrupt status 12 gp12_eint 0 gpio12 interrupt. (trigger controlled by gp12 registers.) note: this bit is cleared once read. 11 gp11_eint 0 gpio11 interrupt. (trigger controlled by gp11 registers.) note: this bit is cleared once read. 10 gp10_eint 0 gpio10 interrupt. (trigger controlled by gp10 registers.) note: this bit is cleared once read. 9 gp9_eint 0 gpio9 interrupt. (trigger controlled by gp9 registers.) note: this bit is cleared once read. 8 gp8_eint 0 gpio8 interrupt. (trigger controlled by gp8 registers.) note: this bit is cleared once read. 7 gp7_eint 0 gpio7 interrupt. (trigger controlled by gp7 registers.) note: this bit is cleared once read. 6 gp6_eint 0 gpio6 interrupt. (trigger controlled by gp6 registers.) note: this bit is cleared once read. 5 gp5_eint 0 gpio5 interrupt. (trigger controlled by gp5 registers.) note: this bit is cleared once read. 4 gp4_eint 0 gpio4 interrupt. (trigger controlled by gp4 registers.) note: this bit is cleared once read. 3 gp3_eint 0 gpio3interrupt. (trigger controlled by gp3 registers.) note: this bit is cleared once read. 2 gp2_eint 0 gpio2 interrupt. (trigger controlled by gp2 registers.) note: this bit is cleared once read. 1 gp1_eint 0 gpio1 interrupt. (trigger controlled by gp1 registers.) note: this bit is cleared once read. 0 gp0_eint 0 gpio0 interrupt. (trigger controlled by gp0 registers.) note: this bit is cleared once read. register 1eh gpio interrupt status
wm8350 production data w pd, march 2010, rev 4.2 240 register address bit label default description refer to r31 (1fh) comparator interrupt status 15 ext_usb_fb_eint 0 usb_fb changed interrupt. (rising and falling edge triggered) note: this bit is cleared once read. 14 ext_wall_fb_eint 0 wall_fb changed interrupt. (rising and falling edge triggered) note: this bit is cleared once read. 13 ext_batt_fb_eint 0 batt_fb changed interrupt. (rising and falling edge triggered) note: this bit is cleared once read. 11 codec_jck_det_l_eint 0 left channel jack detction interrupt. (rising and falling edge triggered) note: this bit is cleared once read. 10 codec_jck_det_r_eint 0 right channel jack detction interrupt. (rising and falling edge triggered) note: this bit is cleared once read. 9 codec_micscd_eint 0 mic short-circuit detect interrupt. (rising and falling edge triggered) note: this bit is cleared once read. 8 codec_micd_eint 0 mic detect interrupt. (rising and falling edge triggered) note: this bit is cleared once read. 6 wkup_off_state_eint 0 indicates that the chip started from the off state. (rising edge triggered) note: this bit is cleared once read. 5 wkup_hib_state_eint 0 indicated the chip started up from the hibernate state. (rising edge triggered) note: this bit is cleared once read. 4 wkup_conv_fault_eint 0 indicates the wakeup was caused by a converter fault leading to the chip being reset. (rising edge triggered) note: this bit is cleared once read. 3 wkup_wdog_rst_eint 0 indicates the wakeup was caused by a watchdog heartbeat being missed, and hence the chip being reset. (rising edge triggered) note: this bit is cleared once read. 2 wkup_gp_pwr_on_eint 0 pwr_on (alternate gpio function) pin has been pressed for longer than specified time. (rising edge triggered) note: this bit is cleared once read. 1 wkup_onkey_eint 0 on key has been pressed for longer than specified time. (rising edge triggered) note: this bit is cleared once read. 0 wkup_gp_wakeup_eint 0 wakeup (alternate gpio function) pin has been pressed for longer than specified time. (rising edge triggered) note: this bit is cleared once read. register 1fh comparator interrupt status
production data wm8350 w pd, march 2010, rev 4.2 241 register address bit label default description refer to r32 (20h) system interrupts mask 13 im_oc_int 1 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. default held in metal mask. 12 im_uv_int 1 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. default held in metal mask. 9 im_cs_int 1 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. default held in metal mask. 8 im_ext_int 1 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. default held in metal mask. 7 im_codec_int 1 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. default held in metal mask. 6 im_gp_int 1 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. default held in metal mask. 5 im_auxadc_int 1 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. default held in metal mask. 4 im_rtc_int 1 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. default held in metal mask. 3 im_sys_int 1 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. default held in metal mask. 2 im_chg_int 1 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. default held in metal mask. 1 im_usb_int 1 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. default held in metal mask. 0 im_wkup_int 1 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. default held in metal mask. register 20h system interrupts mask
wm8350 production data w pd, march 2010, rev 4.2 242 register address bit label default description r efer to r33 (21h) interrupt status 1 mask 15 im_chg_batt_hot_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 14 im_chg_batt_cold_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 13 im_chg_batt_fail_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 12 im_chg_to_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 11 im_chg_end_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 10 im_chg_start_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 9 im_chg_fast_rdy_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 7 im_rtc_per_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 6 im_rtc_sec_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 5 im_rtc_alm_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 2 im_chg_vbatt_lt_3p9_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 1 im_chg_vbatt_lt_3p1_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 0 im_chg_vbatt_lt_2p 85_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. register 21h interrupt status 1 mask
production data wm8350 w pd, march 2010, rev 4.2 243 register address bit label default description r efer to r34 (22h) interrupt status 2 mask 13 im_cs1_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 12 im_cs2_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 10 im_usb_limit_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 8 im_auxadc_datardy_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 7 im_auxadc_dcomp4_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 6 im_auxadc_dcomp3_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 5 im_auxadc_dcomp2_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 4 im_auxadc_dcomp1_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 3 im_sys_hyst_comp_fail_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 2 im_sys_chip_gt115_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 1 im_sys_chip_gt140_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 0 im_sys_wdog_to_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. register 22h interrupt status 2 mask
wm8350 production data w pd, march 2010, rev 4.2 244 register address bit label default description refer to r36 (24h) under voltage interrupt status mask 11 im_uv_ldo4_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 10 im_uv_ldo3_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 9 im_uv_ldo2_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 8 im_uv_ldo1_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 5 im_uv_dc6_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 4 im_uv_dc5_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 3 im_uv_dc4_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 2 im_uv_dc3_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 1 im_uv_dc2_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 0 im_uv_dc1_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. register 24h under voltage interrupt status mask register address bit label default description refer to r37 (25h) over current interrupt status mask 15 im_oc_ls_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. register 25h over current interrupt status mask
production data wm8350 w pd, march 2010, rev 4.2 245 register address bit label default description refer to r38 (26h) gpio interrupt status mask 12 im_gp12_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 11 im_gp11_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 10 im_gp10_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 9 im_gp9_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 8 im_gp8_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 7 im_gp7_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 6 im_gp6_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 5 im_gp5_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 4 im_gp4_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 3 im_gp3_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 2 im_gp2_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 1 im_gp1_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 0 im_gp0_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. register 26h gpio interrupt status mask
wm8350 production data w pd, march 2010, rev 4.2 246 register address bit label default description r efer to r39 (27h) comparator interrupt status mask 15 im_ext_usb_fb_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 14 im_ext_wall_fb_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 13 im_ext_batt_fb_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 11 im_codec_jck_det_l_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 10 im_codec_jck_det_r_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 9 im_codec_micscd_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 8 im_codec_micd_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 6 im_wkup_off_state_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 5 im_wkup_hib_state_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 4 im_wkup_conv_fault_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 3 im_wkup_wdog_rst_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 2 im_wkup_gp_pwr_on_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. 1 im_wkup_onkey_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt.
production data wm8350 w pd, march 2010, rev 4.2 247 register address bit label default description r efer to reset by state machine. 0 im_wkup_gp_wakeup_eint 0 interrupt mask. 0 = do not mask interrupt. 1 = mask interrupt. reset by state machine. register 27h comparator interrupt status mask register address bit label default description refer to r40 (28h) clock control 1 15 toclk_ena 0 slow clock enable. used for both the jack insert detect debounce circuit and the zero cross timeout. 0 = slow clock disabled 1 = slow clock enabled 14 toclk_rate 0 slow clock selection (used for volume update timeouts and for jack detect debounce) 0 = sysclk / 2^21 (slower response) 1 = sysclk / 2^19 (faster response) 11 mclk_sel 0 selects source for sysclk to codec 0 = mclk pin 1 = fll 8 mclk_div 0 selects mclk division in slave (mclk input) mode: 0 = divide mclk by 1 1 = divide mclk by 2 7:4 bclk_div[3:0] 0100 sets bclk rate for master mode 0000 = sysclk 0001 = sysclk / 1.5 0010 = sysclk / 2 0011 = sysclk / 3 0100 = sysclk / 4 0101 = sysclk / 5.5 0101 = sysclk / 6 0111 = sysclk / 8 1000 = sysclk / 11 1001 = sysclk / 12 1010 = sysclk / 16 1011 = sysclk / 22 1100 = sysclk / 24 1101 = sysclk / 32 1110 = sysclk / 32 1111 = sysclk / 32 2:0 opclk_div[2:0] 000 opclk frequency (gpio function) 000 = sysclk 001 = sysclk / 2 010 = sysclk / 3 011 = sysclk / 4 100 = sysclk / 5.5 101 = sysclk / 6 110 = reserved 111 = reserved register 28h clock control 1
wm8350 production data w pd, march 2010, rev 4.2 248 register address bit label default description refer to r41 (29h) clock control 2 15 lrc_adc_sel 0 selects either adclrclk or daclrclk to drive lrclk pin in master mode 0 = daclrclk 1 = adclrclk 0 mclk_dir 0 whether mclk is an input or an output. 0 = mclk is an input 1 = mclk is an output register 29h clock control 2 register address bit label default description refer to r42 (2ah) fll control 1 15 fll_ena 0 digital enable for fll 0 = disabled 1 = enabled note that fll_osc_ena must be enabled before enabling fll_ena. 14 fll_osc_ena 0 analogue enable for fll 0 = fll disabled 1 = fll enabled note that fll_osc_ena must be enabled before enabling fll_ena. 10:8 fll_outdiv [2:0] 010 f out clock divider 000 = f vco / 2 001 = f vco / 4 010 = f vco / 8 011 = f vco / 16 100 = f vco / 32 101 = reserved 110 = reserved 111 = reserved 7:4 fll_rsp_rate 0000 fll loop gain 0000 = x 1 (recommended value) 0001 = x 2 0010 = x 4 0011 = x 8 0100 = x 16 0101 = x 32 0110 = x 64 0111 = x 128 1000 = x 256 recommended that these are not changed from default. 2:0 fll_rate [2:0] 000 frequency of the fll control block 000 = f vco / 1 (recommended value) 001 = f vco / 2 010 = f vco / 4 011 = f vco / 8 100 = f vco / 16 101 = f vco / 32 recommended that these are not changed from default. register 2ah fll control 1
production data wm8350 w pd, march 2010, rev 4.2 249 register address bit label default description refer to r43 (2bh) fll control 2 15:11 fll_ratio [4:0] 14 (0eh) clk_vco is divided by this integer, valid from 1 .. 31. 1 recommended for high freq reference 8 recommended for low freq reference 9:0 fll_n [9:0] 086h fll integer multiplier n for clk_ref register 2bh fll control 2 register address bit label default description refer to r44 (2ch) fll control 3 15:0 fll_k [15:0] c226h fll fractional multiplier k for clk_ref. this is only used if fll_frac is set. register 2ch fll control 3 register address bit label default description refer to r45 (2dh) clock control 1 7 fll_ref_freq 0 low frequency reference locking 0 = high frequency reference locking (recommended for reference clock > 48khz) 1 = lock frequency reference locking (recommended for reference clock <= 48khz) 5 fll_frac 0 fractional enable 0 = integer mode 1 = fractional mode 1 recommended in all cases 1:0 fll_clk_src [1:0] 00 select fll input clock source 00 = mclk 01 = daclrclk 10 = adclrclk 11 = clk_32k_ref register 2dh fll control 4
wm8350 production data w pd, march 2010, rev 4.2 250 register address bit label default description refer to r48 (30h) dac control 13 dac_mono 0 adds left and right channel and halves the resulting output to create a mono output 12 aif_lrclkrate 0 mode select 1 = usb mode (272 * fs) 0 = normal mode (256 * fs) 5:4 deemp[1:0] 00 dac de-emphasis filter control 00 = no de-emphasis 01 = 32khz sample rate 10 = 44.1khz sample rate 11 = 48khz sample rate 3 dac_sdmclk_rate 0 dac_sdmclk_rate allows the dac sdm to be run at a speed higher than 64*fs. this is used for low sample rate modes to allow the sdm to run fast enough to shape the noise so that none of it appears in the audio band. on the previous version, at 8k sample rate you could hear some high frequency noise when playing back through a decent system. 1 dacl_datinv 0 dac data left channel polarity 0 = normal 1 = inverted 0 dacr_datinv 0 dac data right channel polarity 0 = normal 1 = inverted register 30h dac control register address bit label default description refer to r50 (32h) dac digital volume l 15 dacl_ena 0 left dac enable 0 = disabled 1 = enabled 8 dac_vu 0 dac left and dac right volume do not update until a 1 is written to either dac_vu register bit. 7:0 dacl_vol[7:0] 1100_0000 left dac digital volume control: 0000_0000 = digital mute 0000_0001 = -71.625db 0000_0010 = -71.25db ? (0.375db steps) 1100_000 = 0db register 32h dac digital volume l
production data wm8350 w pd, march 2010, rev 4.2 251 register address bit label default description refer to r51 (33h) dac digital volume r 15 dacr_ena 0 right dac enable 0 = disabled 1 = enabled 8 dac_vu 0 dac left and dac right volume do not update until a 1 is written to either dac_vu register bit. 7:0 dacr_vol[7:0] 1100_0000 right dac digital volume control: 0000_0000 = digital mute 0000_0001 = -71.625db 0000_0010 = -71.25db ? (0.375db steps) 1100_000 = 0db register 33h dac digital volume r register address bit label default description refer to r53 (35h) dac lr rate 11 daclrc_ena 0 enables dac lrc generation in master mode 0 = disabled 1 = enabled 10:0 daclrc_rate[10:0] 000_0100_0000 determines the number of bit clocks per lrc phase (when enabled) 00000000000 = invalid ... 00000000111 = invalid 00000001000 = 8 bcps ? 11111111111 = 2047 bcps register 35h dac lr rate register address bit label default description refer to r54 (36h) dac clock control 4 dacclk_pol 0 dac clock polarity 0 = normal 1 = inverted 2:0 dac_clkdiv[2:0] 000 dac sample rate divider 000 = sysclk / 1.0 001 = sysclk / 1.5 010 = sysclk / 2 011 = sysclk / 3 100 = sysclk / 4 101 = sysclk / 5.5 110 = sysclk / 6 111 = reserved register 36h dac clock control
wm8350 production data w pd, march 2010, rev 4.2 252 register address bit label default description refer to r58 (3ah) dac mute 14 dac_mute 1 dac mute 0 = disabled 1 = enabled register 3ah dac mute register address bit label default description refer to r59 (3bh) dac mute volume 14 dac_mutemode 0 dac soft mute mode 0 = disabling soft-mute (dac_mute=0) will cause the volume to change immediately to the dacl_vol / dacr_vol settings 1 = disabling soft-mute (dac_mute=0) will cause the volume to ramp up gradually to the dacl_vol / dacr_vol settings 13 dac_muterate 0 dac soft mute ramp rate 0 = fast ramp (24khz at fs=48k, providing maximum delay of 10.7ms) 1 = slow ramp (1.5khz at fs=48k, providing maximum delay of 171ms) 12 dac_sb_filt 0 selects dac filter characteristics 0 = normal mode 1 = sloping stopband mode register 3bh dac mute volume register address bit label default description refer to r60 (3ch) dac side 13:12 adc_to_dacl[1:0] 00 dac left side-tone control 11 = unused 10 = mix adcr into dacl 01 = mix adcl into dacl 00 = no side-tone mix into dacl 11:10 adc_to_dacr[1:0] 00 dac right side-tone control 11 = unused 10 = mix adcr into dacr 01 = mix adcl into dacr 00 = no side-tone mix into dacr register 3ch dac side
production data wm8350 w pd, march 2010, rev 4.2 253 register address bit label default description refer to r64 (40h) adc control 15 adc_hpf_ena 1 high pass filter enable 0 = disabled 1 = enabled 9:8 adc_hpf_cut[1:0] 00 select cut-off frequency for high-pass filter 00 = 2^-11 (first order) = 3.7hz @44.1khz 01 = 2^-5 (2nd order) = ~250hz @8khz 10 = 2^-4 (2nd order) = ~250hz @16khz 11 = 2^-3 (2nd order) = ~250hz @32khz 1 adcl_datinv 0 adc left channel polarity: 0 = normal 1 = inverted 0 adcr_datinv 0 adc right channel polarity 0 = normal 1 = inverted register 40h adc control register address bit label default description refer to r66 (42h) adc digital volume l 15 adcl_ena 0 left adc enable 0 = disabled 1 = enabled 8 adc_vu 0 adc left and adc right volume do not update until a 1 is written to either adc_vu register bit. 7:0 adcl_vol[7:0] 1100_0000 left adc digital volume control 0000 0000 = digital mute 0000 0001 = -71.625db 0000 0010 = -71.25db ... 0.375db steps up to 1110 1111 = +17.625db register 42h adc digital volume l register address bit label default description refer to r67 (43h) adc digital volume r 15 adcr_ena 0 right adc enable 0 = disabled 1 = enabled 8 adc_vu 0 adc left and adc right volume do not update until a 1 is written to either adc_vu register bit. 7:0 adcr_vol[7:0] 1100_0000 right adc digital volume control 0000 0000 = digital mute 0000 0001 = -71.625db 0000 0010 = -71.25db ... 0.375db steps up to 1110 1111 = +17.625db register 43h adc digital volume r
wm8350 production data w pd, march 2010, rev 4.2 254 register address bit label default description refer to r68 (44h) adc divider 11:8 adcl_dac_svol[3:0] 0000 controls left digital side tone volume from - 36db to 0db in 3db steps. 7:4 adcr_dac_svol[3:0] 0000 controls right digital side tone volume from - 36db to 0db in 3db steps. 3 adcclk_pol 0 adc clock polarity 0 = normal 1 = inverted 2:0 adc_clkdiv[2:0] 000 adc sample rate divider 000 = sysclk / 1.0 001 = sysclk / 1.5 010 = sysclk / 2 011 = sysclk / 3 100 = sysclk / 4 101 = sysclk / 5.5 110 = sysclk / 6 111 = reserved register 44h adc divider register address bit label default description refer to r70 (46h) adc lr rate 11 adclrc_ena 0 enables the lrc generation for the adc 0 = disabled 1 = enabled 10:0 adclrc_rate[10:0] 000_0100_0000 determines the number of bit clocks per lrc phase (when enabled) 00000000000 = invalid ... 00000000111 = invalid 00000001000 = 8 bcps ? 11111111111 = 2047 bcps register 46h adc lr rate register address bit label default description refer to r72 (48h) input control 10 in2r_ena 0 connect in2r pin to right channel input pga 0 = in2r not connected to input pga amplifier 1 = in2r connected to input pga amplifier 9 in1rn_ena 1 connect in1rn pin to right channel input pga negative terminal. 0 = in1rn not connected to input pga 1 = in1rn connected to right channel input pga amplifier negative terminal. 8 in1rp_ena 1 connect in1rp pin to right channel input pga amplifier positive terminal. 0 = in1rp not connected to input pga 1 = right channel input pga amplifier positive terminal connected to in1rp (constant input impedance) 2 in2l_ena 0 connect in2l pin to left channel input pga amplifier 0 = in2l not connected to input pga amplifier 1 = in2l connected to input pga amplifier
production data wm8350 w pd, march 2010, rev 4.2 255 register address bit label default description refer to 1 in1ln_ena 1 connect in1ln pin to left channel input pga negative terminal. 0 = in1ln not connected to input pga 1 = in1ln connected to input pga amplifier negative terminal. 0 in1lp_ena 1 connect in1lp pin to left channel input pga amplifier positive terminal. 0 = in1lp not connected to input pga 1 = input pga amplifier positive terminal connected to in1lp (constant input impedance) register 48h input control register address bit label default description refer to r73 (49h) in3 input control 15 in3r_ena 0 in3r amplifier enable 0 = disabled 1 = enabled 14 in3r_short 0 short circuit internal input resistor for in3r amplifier. 0 = internal resistor in circuit. 1 = internal resistor shorted. 7 in3l_ena 0 in3l amplifier enable 0 = disabled 1 = enabled 6 in3l_short 0 short circuit internal input resistor for in3l amplifier. 0 = internal resistor in circuit. 1 = internal resistor shorted. register 49h in3 input control register address bit label default description refer to r74 (4ah) mic bias control 15 micb_ena 0 microphone bias enable 0 = off (high impedance output) 1 = on 14 micb_sel 0 microphone bias voltage control: 0 = 0.9 * avdd 1 = 0.75 * avdd 7 mic_det_ena 0 enable mic detect: 0 = disabled 1 = enabled 4:2 mcdthr[2:0] 000 threshold for bias current detection 000 = 160 a 001 = 330 a 010 = 500 a 011 = 680 a 100 = 850 a 101 = 1000 a 110 = 1200 a 111 = 1400 a these threshold currents scale proportionally with avdd. the values given are for avdd=3.3v. 1:0 mcdscthr[1:0] 00 threshold for microphone short-circuit detection
wm8350 production data w pd, march 2010, rev 4.2 256 register address bit label default description refer to 00 = 400 a 01 = 900 a 10 = 1350 a 11 = 1800 a these threshold currents scale proportionally with avdd. the values given are for avdd=3.3v. register 4ah mic bias control register address bit label default description refer to r76 (4ch) output control 11 out4_vroi 0 vref (avdd/2) to out4 resistance 0 = approx 500 ohms 1 = approx 30 kohms 10 out3_vroi 0 vref (avdd/2) to out3 resistance 0 = approx 500 ohms 1 = approx 30 kohms 9 out2_vroi 0 vref (avdd/2) to out2l and out2r resistance 0 = approx 500 ohms 1 = approx 30 kohms 8 out1_vroi 0 vref (avdd/2) to out1l and out1r resistance 0 = approx 500 ohms 1 = approx 30 kohms 4 output_drain_ena 0 enables a drain on the outputs allowing the amplifiers to shutdown more quickly. 0 = shutdown as normal 1 = sink current from an external capacitor, allowing faster shutdown. 2 out2_fb 0 enable headphone common mode ground feedback for out2 0 = disabled (hpcom unused) 1 = enabled (common mode feedback through hpcom) 0 out1_fb 0 enable headphone common mode ground feedback for out1 0 = disabled (hpcom unused) 1 = enabled (common mode feedback through hpcom) register 4ch output control register address bit label default description refer to r77 (4dh) jack detect 15 jdl_ena 0 jack detect enable for inputs connected to in2l 0 = disabled 1 = enabled 14 jdr_ena 0 jack detect enable for input connected to in2r 0 = disabled 1 = enabled register 4dh jack detect
production data wm8350 w pd, march 2010, rev 4.2 257 register address bit label default description refer to r78 (4eh) anti pop control 9:8 anti_pop[1:0] 00 reduces pop when vmid is enabled by setting the speed of the s-ramp for vmid. 00 = no s-ramp (will pop) 01 = fastest s-curve 10 = medium s-curve 11 = slowest s-curve 7:6 dis_op_ln4[1:0] 00 sets the discharge rate for out4 00 = discharge path off 01 = fastest discharge 10 = medium discharge 11 = slowest discharge 5:4 dis_op_ln3[1:0] 00 sets the discharge rate for out3 00 = discharge path off 01 = fastest discharge 10 = medium discharge 11 = slowest discharge 3:2 dis_op_out2[1:0] 00 sets the discharge rate for out2l and out2r 00 = discharge path off 01 = fastest discharge 10 = medium discharge 11 = slowest discharge 1:0 dis_op_out1[1:0] 00 sets the discharge rate for out1l and out1r 00 = discharge path off 01 = fastest discharge 10 = medium discharge 11 = slowest discharge register 4eh anti pop control register address bit label default description refer to r80 (50h) left input volume 15 inl_ena 0 left input pga enable 0 = disabled 1 = enabled 14 inl_mute 0 mute control for left channel input pga: 0 = input pga not muted, normal operation 1 = input pga muted (and disconnected from the following input record mixer). 13 inl_zc 0 left channel input pga zero cross enable: 0 = update gain when gain register changes 1 = update gain on 1st zero cross after gain register write. 8 in_vu 0 input left pga and input right pga volume do not update until a 1 is written to either in_vu register bit. 7:2 inl_vol[5:0] 01_0000 left channel input pga volume 000000 = -12db 000001 = -11.25db . 010000 = 0db . 111111 = 35.25db register 50h left input volume
wm8350 production data w pd, march 2010, rev 4.2 258 register address bit label default description refer to r81 (51h) right input volume 15 inr_ena 0 right input pga enable 0 = disabled 1 = enabled 14 inr_mute 0 mute control for right channel input pga: 0 = input pga not muted, normal operation 1 = input pga muted (and disconnected from the following input record mixer). 13 inr_zc 0 right channel input pga zero cross enable: 0 = update gain when gain register changes 1 = update gain on 1st zero cross after gain register write. 8 in_vu 0 input left pga and input right pga volume do not update until a 1 is written to either in_vu register bit. 7:2 inr_vol[5:0] 01_0000 right channel input pga volume 000000 = -12db 000001 = -11.25db . 010000 = 0db . 111111 = 35.25db register 51h right input volume register address bit label default description refer to r88 (58h) left mixer control 15 mixoutl_ena 0 left output mixer enable. 0 = disabled 1 = enabled 12 dacr_to_mixoutl 0 right dac output to left output mixer 0 = not selected 1 = selected 11 dacl_to_mixoutl 1 left dac output to left output mixer 0 = not selected 1 = selected 2 in3l_to_mixoutl 0 in3l amplifier output to left output mixer: 0 = not selected 1 = selected 1 inr_to_mixoutl 0 right input pga output to left output mixer 0 = not selected 1 = selected 0 inl_to_mixoutl 0 left input pga output to left output mixer 0 = not selected 1 = selected register 58h left mixer control
production data wm8350 w pd, march 2010, rev 4.2 259 register address bit label default description refer to r89 (59h) right mixer control 15 mixoutr_ena 0 right output mixer enable. 0 = disabled 1 = enabled 12 dacr_to_mixoutr 1 right dac output to right output mixer 0 = not selected 1 = selected 11 dacl_to_mixoutr 0 left dac output to right output mixer 0 = not selected 1 = selected 3 in3r_to_mixoutr 0 in3r amplifier output to right output mixer: 0 = not selected 1 = selected 1 inr_to_mixoutr 0 right input pga output to right output mixer 0 = not selected 1 = selected 0 inl_to_mixoutr 0 left input pga output to right output mixer 0 = not selected 1 = selected register 59h right mixer control register address bit label default description refer to r92 (5ch) out3 mixer control 15 out3_ena 0 out3 enable 0 = disabled 1 = enabled 11 dacl_to_out3 0 left dac output to out3 0 = disabled 1 = enabled 8 mixinl_to_out3 0 left input mixer to out3 0 = disabled 1 = enabled 3 out4_to_out3 0 out4 mixer to out3 0 = disabled 1 = enabled 0 mixoutl_to_out3 0 left output mixer to out3 0 = disabled 1 = enabled register 5ch out3 mixer control
wm8350 production data w pd, march 2010, rev 4.2 260 register address bit label default description refer to r93 (5dh) out4 mixer control 15 out4_ena 0 enable out4 mixer 0 = disabled 1 = enabled 12 dacr_to_out4 0 right dac output to out4 0 = disabled 1 = enabled 11 dacl_to_out4 0 left dac output to out4 0 = disabled 1 = enabled 10 out4_attn 0 reduce out4 output by 6db 0 = output at normal level 1 = output reduced by 6db 9 mixinr_to_out4 0 right input mixer to out4 0 = disabled 1 = enabled 2 out3_to_out4 0 out3 mixer to out4 this function is not supported 1 mixoutr_to_out4 0 right output mixer to out4 0 = disabled 1 = enabled 0 mixoutl_to_out4 0 left output mixer to out4 0 = disabled 1 = enabled register 5dh out4 mixer control register address bit label default description refer to r96 (60h) output left mixer volume 11:9 in3l_mixoutl_vol[2:0] 000 in3l amplifier volume control to left output mixer 000 = path disabled (disconnected) 001 = -12db gain through mixer 010 = -9db gain through mixer ? 111 = +6db gain through mixer 7:5 inr_mixoutl_vol[2:0] 000 right input pga volume control to left output mixer. 000 = path disabled (disconnected) 001 = -12db gain through mixer 010 = -9db gain through mixer ? 111 = +6db gain through mixer 3:1 inl_mixoutl_vol[2:0] 000 left input pga volume control to left output mixer. 000 = path disabled (disconnected) 001 = -12db gain through mixer 010 = -9db gain through mixer ? 111 = +6db gain through mixer register 60h output left mixer volume
production data wm8350 w pd, march 2010, rev 4.2 261 register address bit label default description refer to r97 (61h) output right mixer volume 15:13 in3r_mixoutr_vol[2:0] 000 in3r amplifier volume control to right output mixer. 000 = path disabled (disconnected) 001 = -12db gain through mixer 010 = -9db gain through mixer ? 111 = +6db gain through mixer 7:5 inr_mixoutr_vol[2:0] 000 right input pga volume control to right output mixer. 000 = path disabled (disconnected) 001 = -12db gain through mixer 010 = -9db gain through mixer ? 111 = +6db gain through mixer 3:1 inl_mixoutr_vol[2:0] 000 left input pga volume control to right output mixer. 000 = path disabled (disconnected) 001 = -12db gain through mixer 010 = -9db gain through mixer ? 111 = +6db gain through mixer register 61h output right mixer volume register address bit label default description refer to r98 (62h) input mixer volume l 11:9 in3l_mixinl_vol[2:0] 000 in3l amplifier volume control to right input mixer. 000 = path disabled (disconnected) 001 = -12db gain through mixer 010 = -9db gain through mixer ? 111 = +6db gain through mixer 3:1 in2l_mixinl_vol[2:0] 000 in2l amplifier volume control to right input mixer. 000 = path disabled (disconnected) 001 = -12db gain through mixer 010 = -9db gain through mixer ? 111 = +6db gain through mixer 0 inl_mixinl_vol 0 boost enable for left channel input pga: 0 = pga output has +0db gain through input record mixer. 1 = pga output has +20db gain through input record mixer. register 62h input mixer volume l
wm8350 production data w pd, march 2010, rev 4.2 262 register address bit label default description refer to r99 (63h) input mixer volume r 15:13 in3r_mixinr_vol[2:0] 000 in3r amplifier volume control to right input mixer. 000 = path disabled (disconnected) 001 = -12db gain through mixer 010 = -9db gain through mixer ? 111 = +6db gain through mixer 7:5 in2r_mixinr_vol[2:0] 000 in2r amplifier volume control to right input mixer. 000 = path disabled (disconnected) 001 = -12db gain through mixer 010 = -9db gain through mixer ? 111 = +6db gain through mixer 0 inr_mixinr_vol 0 boost enable for right channel input pga: 0 = pga output has +0db gain through input record mixer. 1 = pga output has +20db gain through input record mixer. register 63h input mixer volume r register address bit label default description refer to r100 (64h) input mixer volume 15 out4_mixin_dst 0 select routing of out4 to input mixers. 0 = out4 to left input mixer. 1 = out4 to right input mixer. 3:1 out4_mixin_vol[2:0] 000 controls the gain of out4 to left and right input mixers: 000 = path disabled (left and right mute) 001 = -12db gain through boost stages 010 = -9db gain through boost stages ?. 111 = +6db gain through boost stages register 64h input mixer volume
production data wm8350 w pd, march 2010, rev 4.2 263 register address bit label default description refer to r104 (68h) out1l volume 15 out1l_ena 0 out1l enable 0 = disabled 1 = enabled 14 out1l_mute 0 out1l mute: 0 = normal operation 1 = mute 13 out1l_zc 0 out1l volume zero cross enable 0 = change gain immediately 1 = change gain on zero cross only 8 out1_vu 0 out1l and out1r volumes do not update until a 1 is written to either out1_vu. 7:2 out1l_vol[5:0] 11_1001 out1l volume: 000000 = -57db ... 111001 = 0db ... 111111 = +6db register 68h out1l volume register address bit label default description refer to r105 (69h) out1r volume 15 out1r_ena 0 out1r enable 0 = disabled 1 = enabled 14 out1r_mute 0 out1r mute: 0 = normal operation 1 = mute 13 out1r_zc 0 out1r volume zero cross enable 0 = change gain immediately 1 = change gain on zero cross only 8 out1_vu 0 out1l and out1r volumes do not update until a 1 is written to either out1_vu register bits. 7:2 out1r_vol[5:0] 11_1001 out1r volume: 000000 = -57db ... 111001 = 0db ... 111111 = +6db register 69h out1r volume
wm8350 production data w pd, march 2010, rev 4.2 264 register address bit label default description refer to r106 (6ah) out2l volume 15 out2l_ena 0 out2l enable 0 = disabled 1 = enabled 14 out2l_mute 0 out2l mute: 0 = normal operation 1 = mute 13 out2l_zc 0 out2l volume zero cross enable 0 = change gain immediately 1 = change gain on zero cross only 8 out2_vu 0 out2l and out2r volumes do not update until a 1 is written to either out2_vu register bits. 7:2 out2l_vol[5:0] 11_1001 out2l volume: 000000 = -57db ... 111001 = 0db ... 111111 = +6db register 6ah out2l volume register address bit label default description refer to r107 (6bh) out2r volume 15 out2r_ena 0 out2r enable 0 = disabled 1 = enabled 14 out2r_mute 0 out2r mute: 0 = normal operation 1 = mute 13 out2r_zc 0 out2r volume zero cross enable 0 = change gain immediately 1 = change gain on zero cross only 10 out2r_inv 0 enable out2r inverting amplifier 0 = disabled 1 = enabled 9 out2r_inv_mute 1 mute output of pga to inverting amplifier. 0 = pga output goes to inverting amplifier 1 = pga output goes to output driver 8 out2_vu 0 out2l and out2r volumes do not update until a 1 is written to either out2_vu register bits. 7:2 out2r_vol[5:0] 11_1001 out2r volume: 000000 = -57db ... 111001 = 0db ... 111111 = +6db register 6bh out2r volume
production data wm8350 w pd, march 2010, rev 4.2 265 register address bit label default description refer to r111 (6fh) beep volume 15 in3r_to_out2r 0 beep mixer enable 0 = disabled 1 = enabled 7:5 in3r_out2r_vol[2:0] 000 beep mixer volume: 000 = -15db ? in +3db steps 111 = +6db register 6fh beep volume register address bit label default description refer to r112 (70h) ai formating 15 aif_bclk_inv 0 0 = normal 1 = inverted 13 aif_tri 0 sets output enables for lrclk and bclk and adcdat to inactive state 0 = normal 1 = forces pins to hi-z 12 aif_lrclk_inv 0 lrclk clock polarity 0 = normal 1 = inverted dsp mode ? mode a/b select 0 = msb is available on 2nd bclk rising edge after lrclk rising edge (mode a) 1 = msb is available on 1st bclk rising edge after lrclk rising edge (mode b) 11:10 aif_wl[1:0] 10 data word length 11 = 32 bits 10 = 24 bits 01 = 20 bits 00 = 16 bits note: when using the right-justified data format (fmt=00), the maximum word length is 24 bits. 9:8 aif_fmt[1:0] 10 00 = right-justified 01 = left justified 10 = i2s 11 = dsp / pcm mode register 70h ai formating
wm8350 production data w pd, march 2010, rev 4.2 266 register address bit label default description refer to r113 (71h) adc dac comp 7 dac_comp 0 dac companding enable 0 = disabled 1 = enabled 6 dac_compmode 0 dac companding mode select: 0 = -law 1 = a-law (note: setting dac_compmode=1 selects 8-bit mode when dac_comp=0 and adc_comp=0) 5 adc_comp 0 adc companding enable 0 = disabled 1 = enabled 4 adc_compmode 0 adc companding mode select: 0 = -law 1 = a-law (note: setting adc_compmode=1 selects 8-bit mode when dac_comp=0 and adc_comp=0) 0 loopback 0 digital loopback function 0 = no loopback. 1 = loopback enabled, adc data output is fed directly into dac data input. register 71h adc dac comp register address bit label default description refer to r114 (72h) ai adc control 7 aifadc_pd 0 enables a pull down on adc data pin 0 = disabled 1 = enabled 6 aifadcl_src 0 selects left channel adc output. 0 = adc left channel 1 = adc right channel 5 aifadcr_src 1 selects right channel adc output. 0 = adc left channel 1 = adc right channel 4 aifadc_tdm_chan 0 adcdat tdm channel select 0 = adcdat outputs data on slot 0 1 = adcdat outputs data on slot 1 3 aifadc_tdm 0 adc tdm enable 0 = normal adcdat operation 1 = tdm enabled on adcdat register 72h ai adc control
production data wm8350 w pd, march 2010, rev 4.2 267 register address bit label default description refer to r115 (73h) ai dac control 14 bclk_mstr 0 enables the audio interface bclk generation and enables the bclk pin for master mode 0 = bclk slave mode 1 = bclk master mode 7 aifdac_pd 0 enables a pull down on dac data pin 0 = disabled 1 = enabled 6 dacl_src 0 selects left channel dac input. 0 = dac left channel 1 = dac right channel 5 dacr_src 1 selects right channel dac input. 0 = dac left channel 1 = dac right channel 4 aifdac_tdm_chan 0 dacdat tdm channel select 0 = dacdat outputs data on slot 0 1 = dacdat outputs data on slot 1 3 aifdac_tdm 0 dac tdm enable 0 = normal dacdat operation 1 = tdm enabled on dacdat 1:0 dac_boost[1:0] 00 provides a limited set of gains to be applied to the signal 00 = 0db 01 = +6db 10 = +12db 11 = reserved (+18db) register 73h ai dac control register address bit label default description refer to r128 (80h) gpio debounce 12 gp12_db 1 gpio12 debounce 0 = gpio is not debounced. 1 = gpio is debounced (time from gp_dbtime[1:0]) reset by state machine. 11 gp11_db 1 gpio11 debounce 0 = gpio is not debounced. 1 = gpio is debounced (time from gp_dbtime[1:0]) reset by state machine. 10 gp10_db 1 gpio10 debounce 0 = gpio is not debounced. 1 = gpio is debounced (time from gp_dbtime[1:0]) reset by state machine. 9 gp9_db 1 gpio9 debounce 0 = gpio is not debounced. 1 = gpio is debounced (time from gp_dbtime[1:0]) reset by state machine. 8 gp8_db 1 gpio8 debounce 0 = gpio is not debounced. 1 = gpio is debounced (time from gp_dbtime[1:0]) reset by state machine. 7 gp7_db 1 gpio7 debounce 0 = gpio is not debounced. 1 = gpio is debounced (time from gp_dbtime[1:0]) reset by state machine.
wm8350 production data w pd, march 2010, rev 4.2 268 register address bit label default description refer to 6 gp6_db 1 gpio6 debounce 0 = gpio is not debounced. 1 = gpio is debounced (time from gp_dbtime[1:0]) reset by state machine. 5 gp5_db 1 gpio5 debounce 0 = gpio is not debounced. 1 = gpio is debounced (time from gp_dbtime[1:0]) reset by state machine. 4 gp4_db 1 gpio4 debounce 0 = gpio is not debounced. 1 = gpio is debounced (time from gp_dbtime[1:0]) reset by state machine. 3 gp3_db 1 gpio3 debounce 0 = gpio is not debounced. 1 = gpio is debounced (time from gp_dbtime[1:0]) reset by state machine. 2 gp2_db 1 gpio2 debounce 0 = gpio is not debounced. 1 = gpio is debounced (time from gp_dbtime[1:0]) reset by state machine. 1 gp1_db 1 gpio1 debounce 0 = gpio is not debounced. 1 = gpio is debounced (time from gp_dbtime[1:0]) reset by state machine. 0 gp0_db 1 gpio0 debounce 0 = gpio is not debounced. 1 = gpio is debounced (time from gp_dbtime[1:0]) reset by state machine. register 80h gpio debounce register address bit label default description refer to r129 (81h) gpio pin pull up control 12 gp12_pu 0 0 0 0 gpio12 pull-up 0 = normal 1 = pull-up enabled (only valid when gpio12 is set to input. do not select pull-up and pull-down at the same time.) reset by state machine. default held in metal mask. 11 gp11_pu 0 0 0 0 gpio11 pull-up 0 = normal 1 = pull-up enabled (only valid when gpio11 is set to input. do not select pull-up and pull-down at the same time.) reset by state machine. default held in metal mask. 10 gp10_pu 0 0 0 0 gpio10 pull-up 0 = normal 1 = pull-up enabled (only valid when gpio10 is set to input. do not select pull-up and pull-down at the same time.) reset by state machine. default held in metal mask. 9 gp9_pu 0 0 0 gpio9 pull-up 0 = normal 1 = pull-up enabled (only valid when gpio9 is set to input. do not select
production data wm8350 w pd, march 2010, rev 4.2 269 register address bit label default description refer to 0 pull-up and pull-down at the same time.) reset by state machine. default held in metal mask. 8 gp8_pu 0 0 0 0 gpio8 pull-up 0 = normal 1 = pull-up enabled (only valid when gpio8 is set to input. do not select pull-up and pull-down at the same time.) reset by state machine. default held in metal mask. 7 gp7_pu 0 0 0 0 gpio7 pull-up 0 = normal 1 = pull-up enabled (only valid when gpio7 is set to input. do not select pull-up and pull-down at the same time.) reset by state machine. default held in metal mask. 6 gp6_pu 0 0 0 0 gpio6 pull-up 0 = normal 1 = pull-up enabled (only valid when gpio6 is set to input. do not select pull-up and pull-down at the same time.) reset by state machine. default held in metal mask. 5 gp5_pu 0 0 0 0 gpio5 pull-up 0 = normal 1 = pull-up enabled (only valid when gpio5 is set to input. do not select pull-up and pull-down at the same time.) reset by state machine. default held in metal mask. 4 gp4_pu 0 0 0 1 gpio4 pull-up 0 = normal 1 = pull-up enabled (only valid when gpio4 is set to input. do not select pull-up and pull-down at the same time.) reset by state machine. default held in metal mask. 3 gp3_pu 0 0 0 0 gpio3 pull-up 0 = normal 1 = pull-up enabled (only valid when gpio3 is set to input. do not select pull-up and pull-down at the same time.) reset by state machine. default held in metal mask. 2 gp2_pu 0 0 0 0 gpio2 pull-up 0 = normal 1 = pull-up enabled (only valid when gpio2 is set to input. do not select pull-up and pull-down at the same time.) reset by state machine. default held in metal mask. 1 gp1_pu 0 0 0 0 gpio1 pull-up 0 = normal 1 = pull-up enabled (only valid when gpio1 is set to input. do not select pull-up and pull-down at the same time.) reset by state machine. default held in metal mask. 0 gp0_pu 0 0 0 0 gpio0 pull-up 0 = normal 1 = pull-up enabled (only valid when gpio0 is set to input. do not select pull-up and pull-down at the same time.)
wm8350 production data w pd, march 2010, rev 4.2 270 register address bit label default description refer to reset by state machine. default held in metal mask. register 81h gpio pin pull up control register address bit label default description refer to r130 (82h) gpio pull down control 12 gp12_pd 0 0 0 0 gpio12 pull-down 0 = normal 1 = pull-down enabled (only valid when gpio12 is set to input. do not select pull-up and pull-down at the same time.) reset by state machine. default held in metal mask. 11 gp11_pd 0 0 0 0 gpio11 pull-down 0 = normal 1 = pull-down enabled (only valid when gpio11 is set to input. do not select pull-up and pull-down at the same time.) reset by state machine. default held in metal mask. 10 gp10_pd 0 0 0 0 gpio10 pull-down 0 = normal 1 = pull-down enabled (only valid when gpio10 is set to input. do not select pull-up and pull-down at the same time.) reset by state machine. default held in metal mask. 9 gp9_pd 0 0 0 0 gpio9 pull-down 0 = normal 1 = pull-down enabled (only valid when gpio9 is set to input. do not select pull-up and pull-down at the same time.) reset by state machine. default held in metal mask. 8 gp8_pd 0 0 1 0 gpio8 pull-down 0 = normal 1 = pull-down enabled (only valid when gpio8 is set to input. do not select pull-up and pull-down at the same time.) reset by state machine. default held in metal mask. 7 gp7_pd 0 0 0 0 gpio7 pull-down 0 = normal 1 = pull-down enabled (only valid when gpio7 is set to input. do not select pull-up and pull-down at the same time.) reset by state machine. default held in metal mask. 6 gp6_pd 0 0 0 0 gpio6 pull-down 0 = normal 1 = pull-down enabled (only valid when gpio6 is set to input. do not select pull-up and pull-down at the same time.) reset by state machine. default held in metal mask. 5 gp5_pd 0 0 0 0 gpio5 pull-down 0 = normal 1 = pull-down enabled (only valid when gpio5 is set to input. do not select pull-up and pull-down at the same time.) reset by state machine. default held in metal mask.
production data wm8350 w pd, march 2010, rev 4.2 271 register address bit label default description refer to 4 gp4_pd 0 0 1 0 gpio4 pull-down 0 = normal 1 = pull-down enabled (only valid when gpio4 is set to input. do not select pull-up and pull-down at the same time.) reset by state machine. default held in metal mask. 3 gp3_pd 0 0 0 0 gpio3 pull-down 0 = normal 1 = pull-down enabled (only valid when gpio3 is set to input. do not select pull-up and pull-down at the same time.) reset by state machine. default held in metal mask. 2 gp2_pd 0 0 0 0 gpio2 pull-down 0 = normal 1 = pull-down enabled (only valid when gpio2 is set to input. do not select pull-up and pull-down at the same time.) reset by state machine. default held in metal mask. 1 gp1_pd 0 0 0 0 gpio1 pull-down 0 = normal 1 = pull-down enabled (only valid when gpio1 is set to input. do not select pull-up and pull-down at the same time.) reset by state machine. default held in metal mask. 0 gp0_pd 0 0 0 0 gpio0 pull-down 0 = normal 1 = pull-down enabled (only valid when gpio0 is set to input. do not select pull-up and pull-down at the same time.) reset by state machine. default held in metal mask. register 82h gpio pull down control register address bit label default description refer to r131 (83h) gpio interrupt mode 12 gp12_intmode 0 gpio12 pin mode 0 = gpio interrupt is rising edge triggered, and is taken after the effect of the gp12_cfg register bit. 1 = gpio interrupt is both rising and falling edge triggered. reset by state machine. 11 gp11_intmode 0 gpio11 pin mode 0 = gpio interrupt is rising edge triggered, and is taken after the effect of the gp11_cfg register bit. 1 = gpio interrupt is both rising and falling edge triggered. reset by state machine. 10 gp10_intmode 0 gpio10 pin mode 0 = gpio interrupt is rising edge triggered, and is taken after the effect of the gp10_cfg register bit. 1 = gpio interrupt is both rising and falling edge triggered. reset by state machine.
wm8350 production data w pd, march 2010, rev 4.2 272 register address bit label default description refer to 9 gp9_intmode 0 gpio9 pin mode 0 = gpio interrupt is rising edge triggered, and is taken after the effect of the gp9_cfg register bit. 1 = gpio interrupt is both rising and falling edge triggered. reset by state machine. 8 gp8_intmode 0 gpio8 pin mode 0 = gpio interrupt is rising edge triggered, and is taken after the effect of the gp8_cfg register bit. 1 = gpio interrupt is both rising and falling edge triggered. reset by state machine. 7 gp7_intmode 0 gpio7 pin mode 0 = gpio interrupt is rising edge triggered, and is taken after the effect of the gp7_cfg register bit. 1 = gpio interrupt is both rising and falling edge triggered. reset by state machine. 6 gp6_intmode 0 gpio6 pin mode 0 = gpio interrupt is rising edge triggered, and is taken after the effect of the gp6_cfg register bit. 1 = gpio interrupt is both rising and falling edge triggered. reset by state machine. 5 gp5_intmode 0 gpio5 pin mode 0 = gpio interrupt is rising edge triggered, and is taken after the effect of the gp5_cfg register bit. 1 = gpio interrupt is both rising and falling edge triggered. reset by state machine. 4 gp4_intmode 0 gpio4 pin mode 0 = gpio interrupt is rising edge triggered, and is taken after the effect of the gp4_cfg register bit. 1 = gpio interrupt is both rising and falling edge triggered. reset by state machine. 3 gp3_intmode 0 gpio3 pin mode 0 = gpio interrupt is rising edge triggered, and is taken after the effect of the gp3_cfg register bit. 1 = gpio interrupt is both rising and falling edge triggered. reset by state machine. 2 gp2_intmode 0 gpio2 pin mode 0 = gpio interrupt is rising edge triggered, and is taken after the effect of the gp2_cfg register bit. 1 = gpio interrupt is both rising and falling edge triggered. reset by state machine. 1 gp1_intmode 0 gpio1 pin mode 0 = gpio interrupt is rising edge triggered, and is taken after the effect of the gp1_cfg register bit. 1 = gpio interrupt is both rising and falling edge triggered. reset by state machine.
production data wm8350 w pd, march 2010, rev 4.2 273 register address bit label default description refer to 0 gp0_intmode 0 gpio0 pin mode 0 = gpio interrupt is rising edge triggered, and is taken after the effect of the gp0_cfg register bit. 1 = gpio interrupt is both rising and falling edge triggered. reset by state machine. register 83h gpio interrupt mode register address bit label default description refer to r133 (85h) gpio control 7:6 gp_dbtime[1:0] 00 debounce time for all gpio inputs 00 = 64us 01 = 0.5ms 10 = 1ms 11 = 4ms note: pwr_on, pwr_off and /w akeup have additional debounce times. reset by state machine. register 85h gpio control register address bit label default description refer to r134 (86h) gpio configuration (i/o) 12 gp12_dir 0 0 0 0 gpio12 pin direction 0 = output 1 = input reset by state machine. default held in metal mask. 11 gp11_dir 1 1 1 1 gpio11 pin direction 0 = output 1 = input reset by state machine. default held in metal mask. 10 gp10_dir 1 1 0 0 gpio10 pin direction 0 = output 1 = input reset by state machine. default held in metal mask. 9 gp9_dir 1 0 0 1 gpio9 pin direction 0 = output 1 = input reset by state machine. default held in metal mask. 8 gp8_dir 1 0 1 1 gpio8 pin direction 0 = output 1 = input reset by state machine. default held in metal mask. 7 gp7_dir 1 1 1 1 gpio7 pin direction 0 = output 1 = input reset by state machine. default held in metal mask. 6 gp6_dir 1 1 1 1 gpio6 pin direction 0 = output 1 = input reset by state machine. default held in metal mask.
wm8350 production data w pd, march 2010, rev 4.2 274 register address bit label default description refer to 5 gp5_dir 1 1 1 1 gpio5 pin direction 0 = output 1 = input reset by state machine. default held in metal mask. 4 gp4_dir 1 1 1 1 gpio4 pin direction 0 = output 1 = input reset by state machine. default held in metal mask. 3 gp3_dir 1 1 1 1 gpio3 pin direction 0 = output 1 = input reset by state machine. default held in metal mask. 2 gp2_dir 1 1 0 0 gpio2 pin direction 0 = output 1 = input reset by state machine. default held in metal mask. 1 gp1_dir 0 1 1 1 gpio1 pin direction 0 = output 1 = input reset by state machine. default held in metal mask. 0 gp0_dir 0 1 0 1 gpio0 pin direction 0 = output 1 = input reset by state machine. default held in metal mask. register 86h gpio configuration (i/o) register address bit label default description refer to r135 (87h) gpio pin polarity / type 12 gp12_cfg 0 0 0 0 gpio12 pin polarity/type: input: 0 = active low 1 = active high output: 0 = cmos 1 = open drain reset by state machine. default held in metal mask. 11 gp11_cfg 1 1 1 1 gpio11 pin polarity/type: input: 0 = active low 1 = active high output: 0 = cmos 1 = open drain reset by state machine. default held in metal mask. 10 gp10_cfg 1 1 1 1 gpio10 pin polarity/type: input: 0 = active low 1 = active high output: 0 = cmos 1 = open drain reset by state machine. default held in metal mask.
production data wm8350 w pd, march 2010, rev 4.2 275 register address bit label default description refer to 9 gp9_cfg 1 0 0 1 gpio9 pin polarity/type: input: 0 = active low 1 = active high output: 0 = cmos 1 = open drain reset by state machine. default held in metal mask. 8 gp8_cfg 1 0 1 1 gpio8 pin polarity/type: input: 0 = active low 1 = active high output: 0 = cmos 1 = open drain reset by state machine. default held in metal mask. 7 gp7_cfg 1 0 1 1 gpio7 pin polarity/type: input: 0 = active low 1 = active high output: 0 = cmos 1 = open drain reset by state machine. default held in metal mask. 6 gp6_cfg 1 0 1 1 gpio6 pin polarity/type: input: 0 = active low 1 = active high output: 0 = cmos 1 = open drain reset by state machine. default held in metal mask. 5 gp5_cfg 1 0 1 1 gpio5 pin polarity/type: input: 0 = active low 1 = active high output: 0 = cmos 1 = open drain reset by state machine. default held in metal mask. 4 gp4_cfg 1 1 1 1 gpio4 pin polarity/type: input: 0 = active low 1 = active high output: 0 = cmos 1 = open drain reset by state machine. default held in metal mask. 3 gp3_cfg 1 1 0 1 gpio3 pin polarity/type: input: 0 = active low 1 = active high output: 0 = cmos
wm8350 production data w pd, march 2010, rev 4.2 276 register address bit label default description refer to 1 = open drain reset by state machine. default held in metal mask. 2 gp2_cfg 1 1 1 1 gpio2 pin polarity/type: input: 0 = active low 1 = active high output: 0 = cmos 1 = open drain reset by state machine. default held in metal mask. 1 gp1_cfg 0 1 1 0 gpio1 pin polarity/type: input: 0 = active low 1 = active high output: 0 = cmos 1 = open drain reset by state machine. default held in metal mask. 0 gp0_cfg 0 1 0 1 gpio0 pin polarity/type: input: 0 = active low 1 = active high output: 0 = cmos 1 = open drain reset by state machine. default held in metal mask. register 87h gpio pin polarity / type register address bit label default description refer to r140 (8ch) gpio function select 1 15:12 gp3_fn[3:0] 0000 0000 0001 0000 gpio3 alternate function: input: 0000 = gpio 0001 = pwr_on 0010 = ldo_ena 0011 = pwr_off 0100 = flash output: 0000 = gpio 0001 = p_clk 0010 = vrtc 0011 = 32khz 0100 = /memrst reset by state machine. default held in metal mask. 11:8 gp2_fn[3:0] 0000 0000 0011 0011 gpio2 alternate function: input: 0000 = gpio 0001 = pwr_on 0010 = /w akeup 0011 = 32khz 0100 = l_pwr3 output: 0000 = gpio
production data wm8350 w pd, march 2010, rev 4.2 277 register address bit label default description refer to 0001 = pwr_on 0010 = vrtc 0011 = 32khz 0100 = /rst reset by state machine. default held in metal mask. 7:4 gp1_fn[3:0] 0001 0000 0001 0001 gpio1 alternate function: input: 0000 = gpio 0001 = pwr_on 0010 = /ldo_ena 0011 = l_pwr2 0100 = /w akeup output: 0000 = gpio 0001 = do_conf 0010 = /rst 0011 = /memrst 0100 = 32khz reset by state machine. default held in metal mask. 3:0 gp0_fn[3:0] 0011 0000 0000 0000 gpio0 alternate function: input- 0000 = gpio 0001 = pwr_on 0010 = /ldo_ena 0011 = l_pwr1 0100 = pwr_off 0101 = chip_reset output: 0000 = gpio 0001 = pwr_on 0010 = vrtc 0011 = por_b 0100 = /rst reset by state machine. default held in metal mask. register 8ch gpio function select 1 register address bit label default description refer to r141 (8dh) gpio function select 2 15:12 gp7_fn[3:0] 0000 0001 0000 0000 gpio7 alternate function: input: 0000 = gpio 0001 = l_pwr3 0010 = mask 0011 = hibernate (level) output: 0000 = gpio 0001 = p_clk (1mhz) 0010 = /vcc_fault 0011 = /batt_fault 0100 = micdet 0101 = micsht 0110 = ada 1100 = fll_clk
wm8350 production data w pd, march 2010, rev 4.2 278 register address bit label default description refer to reset by state machine. default held in metal mask. 11:8 gp6_fn[3:0] 0000 0001 0000 0000 gpio6 alternate function: input: 0000 = gpio 0001 = l_pwr2 0010 = flash 0011 = hibernate (edge) 0100 = hibernate (level) output: 0000 = gpio 0001 = /memrst 0010 = ada 0011 = rtc 0100 = micdet 0101 = micsht 0110 = adclrclkb reset by state machine. default held in metal mask. 7:4 gp5_fn[3:0] 0000 0001 0000 0000 gpio5 alternate function: input: 0000 = gpio 0001 = l_pwr1 0010 = adclrclk 0011 = hibernate (edge) 0100 = pwr_off 0101 = hibernate (level) output: 0000 = gpio 0001 = p_clk 0010 = adclrclk 0011 = 32khz 0100 = /batt_fault 0101 = micsht 0110 = ada 0111 = codec_opclk 1010 = micdet reset by state machine. default held in metal mask. 3:0 gp4_fn[3:0] 0000 0000 0011 0001 gpio4 alternate function: input: 0000 = gpio 0001 = /mr 0010 = flash 0011 = hibernate (level) 0100 = mask 0101 = chip_reset output: 0000 = gpio 0001 = /memrst 0010 = ada 0011 = flash_out 0100 = /vcc_fault 0101 = micsht 1010 = micdet reset by state machine. default held in metal mask. register 8dh gpio function select 2
production data wm8350 w pd, march 2010, rev 4.2 279 register address bit label default description refer to r142 (8eh) gpio function select 3 15:12 gp11_fn[3:0] 0000 0000 0010 0010 gpio11 alternate function: input: 0000 = gpio 0010 = /wakeup output: 0000 = gpio 0001 = isinkd 0010 = line_gt_batt 0011 = ch_ind reset by state machine. default held in metal mask. 11:8 gp10_fn[3:0] 0000 0000 0000 0011 gpio10 alternate function: input: 0000 = gpio 0011 = pwr_off output: 0000 = gpio 0001 = isinkc 0010 = line_gt_batt 0011 = ch_ind reset by state machine. default held in metal mask. 7:4 gp9_fn[3:0] 0000 0001 0000 0000 gpio9 alternate function: input: 0000 = gpio 0001 = heart beat 0010 = mask 0011 = pwr_off 0100 = hibernate (level) output: 0000 = gpio 0001 = /vcc_fault 0010 = line_gt_batt 0011 = /batt_fault 0100 = /memrst reset by state machine. default held in metal mask. 3:0 gp8_fn[3:0] 0000 0011 0000 0000 gpio8 alternate function: input: 0000 = gpio 0001 = /mr 0010 = adcbclk 0011 = pwr_off 0100 = hibernate (edge) output: 0000 = gpio 0001 = /vcc_fault 0010 = adcbclk 0011 = /batt_fault 0100 = /rst reset by state machine. default held in metal mask. register 8eh gpio function select 3
wm8350 production data w pd, march 2010, rev 4.2 280 register address bit label default description refer to r143 (8fh) gpio function select 4 3:0 gp12_fn[3:0] 0011 0011 0000 0011 gpio12 alternate function: input: 0000 = gpio 0001 = chip_reset output: 0000 = gpio 0001 = isinke 0010 = line_gt_batt 0011 = line_sw 0100 = 32khz reset by state machine. default held in metal mask. register 8fh gpio function select 4 register address bit label default description refer to r144 (90h) digitiser control (1) 15 auxadc_ena 0 auxadc control 0 = disabled 1 = enabled reset by state machine. 14 auxadc_ctc 0 continuous conversion mode: 0 = polling mode 1 = continuous mode reset by state machine. 13 auxadc_poll 0 writing ?1? initiates a set of measurements in polling mode (auxadc_ctc=0). this bit is automatically reset after the measurements are completed. reset by state machine. 12 auxadc_hib_mode 0 auxadc state in hibernate mode: 0 = leave auxadc as in active 1 = disable auxadc. reset by state machine. 7 auxadc_sel8 0 auxadc temp input select 0 = disable temp measurement 1 = enable temp measurement reset by state machine. 6 auxadc_sel7 0 auxadc batt input select 0 = disable batt measurement 1 = enable batt measurement reset by state machine. 5 auxadc_sel6 0 auxadc line input select 0 = disable line measurement 1 = enable line measurement reset by state machine. 4 auxadc_sel5 0 auxadc usb input select 0 = disable usb measurement 1 = enable usb measurement reset by state machine. 3 auxadc_sel4 0 auxadc aux4 input select 0 = disable aux4 measurement 1 = enable aux4 measurement reset by state machine.
production data wm8350 w pd, march 2010, rev 4.2 281 register address bit label default description refer to 2 auxadc_sel3 0 auxadc aux3 input select 0 = disable aux3 measurement 1 = enable aux3 measurement reset by state machine. 1 auxadc_sel2 0 auxadc aux2 input select 0 = disable aux2 measurement 1 = enable aux2 measurement reset by state machine. 0 auxadc_sel1 0 auxadc aux1 input select 0 = disable aux1 measurement 1 = enable aux1 measurement reset by state machine. register 90h digitiser control (1) register address bit label default description refer to r145 (91h) digitiser control (2) 13:12 auxadc_maskmode[1:0] 00 auxadc mask input control 00 = mask is ignored 01 = when m ask is asserted, all auxadc measurements are inhibited. 10 = reserved 11 = mask input initiates auxadc measurements. auxadc_poll and auxadc_ctc have no effect. mask polarity is controlled by gpn_cfg. reset by state machine. 10:8 auxadc_crate[2:0] 000 auxadc measurement frequency in continuous mode 000 = 1hz 001 = 4hz 010 = 8hz 011 = 16hz 100 = 32hz 101 = 64hz 110 = 128hz 111 = 256hz reset by state machine. 2 auxadc_cal 0 configure aux3 input to be the vref supply for auxadc calibration. 0 = aux3 input connected to aux3 pin 1 = aux3 input connected to unbuffered vref reset by state machine. 1 auxadc_rbmode 1 enable for auxadc bandgap (vref) buffer. 0 = auxadc refbuf is only enabled during conversions that use the vref as a reference 1 = auxadc refbuf is always enabled when the auxadc is enabled reset by state machine. 0 auxadc_wait 0 whether the old data must be read before new conversions can be made 0 = no effect (new conversions overwrite old) 1 = new conversions are held back (and
wm8350 production data w pd, march 2010, rev 4.2 282 register address bit label default description refer to measurements delayed) until aux_datan has been read. reset by state machine. register 91h digitiser control (2) register address bit label default description refer to r152 (98h) aux1 readback 14:13 auxadc_scale1[1:0] 11 aux1 input select: 00 = off 01 = input divided by 1 10 = input divided by 2 11 = input divided by 4 12 auxadc_ref1 1 aux1 reference select 0 = aux1 measured relative to vrtc 1 = aux1 measured relative to vref 11:0 auxadc_data1[11:0] 0000_0000_0000 measured aux1 data value relative to reference: 000 = 0v fff = measured vo ltage after divide matches reference register 98h aux1 readback register address bit label default description refer to r153 (99h) aux2 readback 14:13 auxadc_scale2[1:0] 11 aux2 input select: 00 = off 01 = input divided by 1 10 = input divided by 2 11 = input divided by 4 12 auxadc_ref2 1 aux2 reference select 0 = aux2 measured relative to vrtc 1 = aux2 measured relative to vref 11:0 auxadc_data2[11:0] 0000_0000_0000 measured aux2 data value relative to reference: 000 = 0v fff = measured vo ltage after divide matches reference register 99h aux2 readback
production data wm8350 w pd, march 2010, rev 4.2 283 register address bit label default description refer to r154 (9ah) aux3 readback 14:13 auxadc_scale3[1:0] 11 aux3 input select: 00 = off 01 = input divided by 1 10 = input divided by 2 11 = input divided by 4 12 auxadc_ref3 1 aux3 reference select 0 = aux3 measured relative to vrtc 1 = aux3 measured relative to vref 11:0 auxadc_data3[11:0] 0000_0000_0000 measured aux3 data value relative to reference: 000 = 0v fff = measured vo ltage after divide matches reference register 9ah aux3 readback register address bit label default description refer to r155 (9bh) aux4 readback 14:13 auxadc_scale4[1:0] 11 aux4 input select: 00 = off 01 = input divided by 1 10 = input divided by 2 11 = input divided by 4 12 auxadc_ref4 1 aux4 reference select 0 = aux4 measured relative to vrtc 1 = aux4 measured relative to vref 11:0 auxadc_data4[11:0] 0000_0000_0000 measured aux4 data value relative to reference: 000 = 0v fff = measured vo ltage after divide matches reference register 9bh aux4 readback register address bit label default description r efer to r156 (9ch) usb voltage readback 11:0 auxadc_data_usb[11:0] 0000_0000_0000 measured usb voltage data value. register 9ch usb voltage readback register address bit label default description r efer to r157 (9dh) line voltage readback 11:0 auxadc_data_line[11:0] 0000_0000_0000 measured line voltage data value. register 9dh line voltage readback
wm8350 production data w pd, march 2010, rev 4.2 284 register address bit label default description r efer to r158 (9eh) batt voltage readback 11:0 auxadc_data_batt[11:0] 0000_0000_0000 measured battery voltage. register 9eh batt voltage readback register address bit label default description r efer to r159 (9fh) chip temp readback 11:0 auxadc_data_chiptemp[11:0] 0000_0000_0000 measured internal chip temperature register 9fh chip temp readback register address bit label default description refer to r163 (a3h) generic comparator control 3 dcmp4_ena 0 digital comparator 4 enable 0 = disabled 1 = enabled reset by state machine. 2 dcmp3_ena 0 digital comparator 3 enable 0 = disabled 1 = enabled reset by state machine. 1 dcmp2_ena 0 digital comparator 2 enable 0 = disabled 1 = enabled reset by state machine. 0 dcmp1_ena 0 digital comparator 1 enable 0 = disabled 1 = enabled reset by state machine. register a3h generic comparator control register address bit label default description refer to r164 (a4h) generic comparator 1 15:13 dcmp1_srcsel[2:0] 000 dcomp1 source select. 000 = aux1 001 = aux2 010 = aux3 011 = aux4 100 = usb 101 = line 110 = batt 111 = temp reset by state machine. 12 dcmp1_gt 0 dcomp1 interrupt control 0 = interrupt when the source is less than threshold 1 = interrupt when the source is greater than threshold 11:0 dcmp1_thr[11:0] 0000_0000_0000 dcomp1 threshold (12-bit unsigned binary number) register a4h generic comparator 1
production data wm8350 w pd, march 2010, rev 4.2 285 register address bit label default description refer to r165 (a5h) generic comparator 2 15:13 dcmp2_srcsel[2:0] 000 dcomp2 source select. 000 = aux1 001 = aux2 010 = aux3 011 = aux4 100 = usb 101 = line 110 = batt 111 = temp reset by state machine. 12 dcmp2_gt 0 dcomp2 interrupt control 0 = interrupt when the source is less than threshold 1 = interrupt when the source is greater than threshold 11:0 dcmp2_thr[11:0] 0000_0000_0000 dcomp2 threshold (12-bit unsigned binary number) register a5h generic comparator 2 register address bit label default description refer to r166 (a6h) generic comparator 3 15:13 dcmp3_srcsel[2:0] 000 dcomp3 source select. 000 = aux1 001 = aux2 010 = aux3 011 = aux4 100 = usb 101 = line 110 = batt 111 = temp reset by state machine. 12 dcmp3_gt 0 dcomp3 interrupt control 0 = interrupt when the source is less than threshold 1 = interrupt when the source is greater than threshold 11:0 dcmp3_thr[11:0] 0000_0000_0000 dcomp3 threshold (12-bit unsigned binary number) register a6h generic comparator 3
wm8350 production data w pd, march 2010, rev 4.2 286 register address bit label default description refer to r167 (a7h) generic comparator 4 15:13 dcmp4_srcsel[2:0] 000 dcomp4 source select. 000 = aux1 001 = aux2 010 = aux3 011 = aux4 100 = usb 101 = line 110 = batt 111 = temp reset by state machine. 12 dcmp4_gt 0 dcomp4 interrupt control 0 = interrupt when the source is less than threshold 1 = interrupt when the source is greater than threshold 11:0 dcmp4_thr[11:0] 0000_0000_0000 dcomp4 threshold (12-bit unsigned binary number) register a7h generic comparator 4 register address bit label default description r efer to r168 (a8h) battery charger control 1 15 chg_ena 1 chg_ena bit selects battery charger current control 0 = set battery charger current to zero 1 = enable battery charge control protected by security key. reset by state machine. default held in metal mask. 12:10 chg_eoc_sel[2:0] 000 selects what the end of charge current should be set to 000 = 20ma 001 = 30ma (10ma steps) ... 111 = 90ma protected by security key. 9 chg_trickle_temp_choke 0 enable trickle charge temperature choking 0 = disable 1 = enable protected by security key. reset by state machine. 8 chg_trickle_usb_choke 0 enable usb current choking in trickle charge 0 = disable 1 = enable protected by security key. reset by state machine. 7 chg_recover_t 0 time constant adjust for charger choke recovery (step-up): 0 = step-up time constant is 180us (allows faster recovery between processor wakeups) 1 = step-up time constant is >20ms (outside audio band)
production data wm8350 w pd, march 2010, rev 4.2 287 register address bit label default description r efer to protected by security key. reset by state machine. 6 chg_end_act 0 action to take when charging ends: 0 = set charge current to 0 1 = do nothing (leave charger on till timeout) protected by security key. reset by state machine. 5 chg_fast 0 enable fast charging. 0 = fast charging cannot take place. 1 = enable fast charging (will not start until valid charging conditions are met). note: this register is held low and can only be written to once the fast charge ready signal has gone high. protected by security key. reset by state machine. default held in metal mask. 4 chg_fast_usb_throttle 0 enable usb current throttling in fast charge: 0 = don't do any current throttling when fast charging. 1 = do current throttle while fast charging. protected by security key. reset by state machine. 3 chg_ntc_mon 1 1 1 1 enable charger battery ntc detection (some batteries may not need this - turn off with caution) 0 = charger ignores no_ntc detection. 1 = charger monitors no_ntc detection. default held in metal mask. 2 chg_batt_hot_mon 1 1 1 1 enable charger battery temperature high detection (some batteries may not need this - turn off with caution) 0 = charger ignores battery temperature too high. 1 = charger monitors battery temperature too high. default held in metal mask. 1 chg_batt_cold_mon 1 1 1 1 enable charger battery temperature low detection (some batteries may not need this - turn off with caution) 0 = charger ignores battery temperature low. 1 = charger monitors battery temperature low. default held in metal mask. 0 chg_chip_temp_mon 1 enable charger chip temperature detection (some batteries may not need this - turn off with caution) 0 = charger ignores chip temperature 1 = charger monitors chip temperature protected by security key. default held in metal mask. register a8h battery charger control 1
wm8350 production data w pd, march 2010, rev 4.2 288 register address bit label default description refer to r169 (a9h) battery charger control 2 15 chg_active 0 charger status. 0 = battery charging is inactive 1 = battery charging is active (note chg_ena is just a request; the wm8350 determines if the conditions are satisfied for battery charging). default held in metal mask. 14 chg_pause 0 0 = don't pause the charger 1 = pause charging reset by state machine. 13:12 chg_sts[1:0] 00 00 = charger off, current set to 0. 01 = in trickle charge mode. 10 = in fast charge mode. 11 = reserved 11:8 chg_time[3:0] 1011 writing to his field set the charge timeout duration: 0000 = 60min 0001 = 90min 0010 = 120min 0011 = 150min 0100 = 180min 0101 = 210min 0110 = 240min 0111 = 270min 1000 = 300min 1001 = 330min 1010 = 360min 1011 = 390min 1100 = 420min 1101 = 450min 1110 = 480min 1111 = 510min reading from this field indicates the charge time remaining: time remaining = chg_time * 2048s protected by security key. default held in metal mask. 7 chg_mask_wa ll_fb 0 selects whether to ignore the wall_fb signal when charging from line. 0 = does not mask the wall_fb signal 1 = mask the wall_fb signal. note: care needs to be taken when using this bit. protected by security key. reset by state machine. 6 chg_trickle_sel 0 selects the trickle charge current. 0 = set the trickle charge current to 50ma. 1 = set the trickle charge current to 100ma. protected by security key. 5:4 chg_vsel[1:0] 00 battery charge voltage: 00 = 4.05v 01 = 4.1v 10 = 4.15v 11 = 4.2v protected by security key. 3:0 chg_isel[3:0] 0110 fast charge current limit setting.
production data wm8350 w pd, march 2010, rev 4.2 289 register address bit label default description refer to 0000 = off 0001 = 50ma 0010 = 100ma ? (50ma steps) 1111 = 750ma note: do not set the charger to be more than 400ma when usb powered. protected by security key. register a9h battery charger control 2 register address bit label default description refer to r170 (aah) battery charger control 3 7 chg_frc 0 allows trickle-charging to be forced even if the battery voltage is above the default threshold 0 = only trickle-charge if the battery voltage is below chg_vsel- 100mv 1 = always trickle-charge protected by security key. reset by state machine. 6:5 chg_throttle_t[1:0] 00 time between steps when the charger throttles back due to usb current limit. 00 = 8us 01 = 16us 10 = 32us 11 = 128us protected by security key. register aah battery charger control 3 register address bit label default description refer to r172 (ach) current sink driver a 15 cs1_ena 0 current sink 1 enable (isinka pin) 0 = disabled 1 = enabled reset by state machine. 12 cs1_hib_mode 0 current sink 1 behaviour in hibernate mode 0 = disable current sink in hibernate 1 = leave current sink as in active reset by state machine. 5:0 cs1_isel[5:0] 00_0000 isinka current 00_0000 = 4.05ua 00_0001 = 4.85ua 00_0010 = 5.64ua 00_0011 = 6.83ua 00_0100 = 8.02ua 00_0101 = 9.6ua 00_0110 = 11.2ua 00_0111 = 13.5ua 00_1000 = 16.1ua 00_1001 = 19.3ua 00_1010 = 22.4ua 00_1011 = 27.2ua 00_1100 = 32ua
wm8350 production data w pd, march 2010, rev 4.2 290 register address bit label default description refer to 00_1101 = 38.3ua 00_1110 = 44.7ua 00_1111 = 54.1ua 01_0000 = 64.1ua 01_0001 = 76.8ua 01_0010 = 89.5ua 01_0011 = 109ua 01_0100 = 128ua 01_0101 = 153ua 01_0110 = 178ua 01_0111 = 216ua 01_1000 = 256ua 01_1001 = 307ua 01_1010 = 358ua 01_1011 = 434ua 01_1100 = 510ua 01_1101 = 612ua 01_1110 = 713ua 01_1111 = 865ua 10_0000 = 1.02ma 10_0001 = 1.22ma 10_0010 = 1.42ma 10_0011 = 1.73ma 10_0100 = 2.03ma 10_0101 = 2.43ma 10_0110 = 2.83ma 10_0111 = 3.43ma 10_1000 = 4.08ma 10_1001 = 4.89ma 10_1010 = 5.7ma 10_1011 = 6.91ma 10_1100 = 8.13ma 10_1101 = 9.74ma 10_1110 = 11.3ma 10_1111 = 13.7ma 11_0000 = 16.3ma 11_0001 = 19.6ma 11_0010 = 22.8ma 11_0011 = 27.6ma 11_0100 = 32.5ma 11_0101 = 39ma 11_0110 = 45.4ma 11_0111 = 54.9ma 11_1000 = 65.3ma 11_1001 = 78.2ma 11_1010 = 91.2ma 11_1011 = 111ma 11_1100 = 130ma 11_1101 = 156ma 11_1110 = 181ma 11_1111 = 220ma reset by state machine. register ach current sink driver a
production data wm8350 w pd, march 2010, rev 4.2 291 register address bit label default description refer to r173 (adh) csa flash control 15 cs1_flash_mode 0 determines the function of the current sink 0 = led mode 1 = flash mode reset by state machine. 14 cs1_trigsrc 0 selects the trigger for the flash 0 = flash is triggered by cs1_drive bit 1 = flash is triggered from gpio pin configured as flash this bit has no effect when cs1_flash_mode=0 reset by state machine. 13 cs1_drive 0 enables the current sink isinka led mode- 0 = disable led 1 = enabled led flash mode- register bit used to trigger the flash, if cs1_trigsrc is set to 0. flash is started when the bit goes high, it is then reset at the end of the flash duration. duration is determined by cs1_flash_dur. this bit has no effect if cs1_trigsrc is set to 1. reset by state machine. default held in metal mask. 12 cs1_flash_rate 0 determines the flash rate 0 = normal operation. once per trigger (either register bit or gpio) 1 = flash will be internally triggered every 4 seconds reset by state machine. 9:8 cs1_flash_dur[1:0] 00 sets duration of flash 00 = 32ms 01 = 64ms 10 = 96ms 11 = 1024ms reset by state machine. 5:4 cs1_off_ramp[1:0] 00 switch-off ramp duration led mode- 00 = instant (no ramp) 01 = 0.25s 10 = 0.5s 11 = 1s flash mode- 00 = instant (no ramp) 01 = 1.95ms 10 = 3.91ms 11 = 7.8ms reset by state machine. 1:0 cs1_on_ramp[1:0] 00 switch-on ramp duration
wm8350 production data w pd, march 2010, rev 4.2 292 register address bit label default description refer to led mode- 00 = instant (no ramp) 01 = 0.25s 10 = 0.5s 11 = 1s flash mode- 00 = instant (no ramp) 01 = 1.95ms 10 = 3.91ms 11 = 7.8ms reset by state machine. register adh csa flash control register address bit label default description refer to r174 (aeh) current sink driver b 15 cs2_ena 0 current sink 2 enable (isinkb pin) 0 = disabled 1 = enabled reset by state machine. 12 cs2_hib_mode 0 current sink 2 behaviour in hibernate mode 0 = disable current sink in hibernate 1 = leave current sink as in active reset by state machine. 5:0 cs2_isel[5:0] 00_0000 isink2 current 00_0000 = 4.05ua 00_0001 = 4.85ua 00_0010 = 5.64ua 00_0011 = 6.83ua 00_0100 = 8.02ua 00_0101 = 9.6ua 00_0110 = 11.2ua 00_0111 = 13.5ua 00_1000 = 16.1ua 00_1001 = 19.3ua 00_1010 = 22.4ua 00_1011 = 27.2ua 00_1100 = 32ua 00_1101 = 38.3ua 00_1110 = 44.7ua 00_1111 = 54.1ua 01_0000 = 64.1ua 01_0001 = 76.8ua 01_0010 = 89.5ua 01_0011 = 109ua 01_0100 = 128ua 01_0101 = 153ua 01_0110 = 178ua 01_0111 = 216ua 01_1000 = 256ua 01_1001 = 307ua 01_1010 = 358ua 01_1011 = 434ua
production data wm8350 w pd, march 2010, rev 4.2 293 register address bit label default description refer to 01_1100 = 510ua 01_1101 = 612ua 01_1110 = 713ua 01_1111 = 865ua 10_0000 = 1.02ma 10_0001 = 1.22ma 10_0010 = 1.42ma 10_0011 = 1.73ma 10_0100 = 2.03ma 10_0101 = 2.43ma 10_0110 = 2.83ma 10_0111 = 3.43ma 10_1000 = 4.08ma 10_1001 = 4.89ma 10_1010 = 5.7ma 10_1011 = 6.91ma 10_1100 = 8.13ma 10_1101 = 9.74ma 10_1110 = 11.3ma 10_1111 = 13.7ma 11_0000 = 16.3ma 11_0001 = 19.6ma 11_0010 = 22.8ma 11_0011 = 27.6ma 11_0100 = 32.5ma 11_0101 = 39ma 11_0110 = 45.4ma 11_0111 = 54.9ma 11_1000 = 65.3ma 11_1001 = 78.2ma 11_1010 = 91.2ma 11_1011 = 111ma 11_1100 = 130ma 11_1101 = 156ma 11_1110 = 181ma 11_1111 = 220ma reset by state machine. register aeh current sink driver b register address bit label default description refer to r175 (afh) csb flash control 15 cs2_flash_mode 0 determines the function of the current sink 0 = led mode 1 = flash mode reset by state machine. 14 cs2_trigsrc 0 selects the trigger in flash mode. 0 = flash triggered by cs2_drive bit 1 = flash triggered from gpio pin configured as flash this bit has no effect when cs2_flash_mode=0 reset by state machine.
wm8350 production data w pd, march 2010, rev 4.2 294 register address bit label default description refer to 13 cs2_drive 0 enables the current sink isinkb led mode- 0 = disable led 1 = enabled led flash mode- register bit used to trigger the flash, if cs2_trigsrc is set to 0. flash is started when the bit goes high, it is then reset at the end of the flash duration. duration is determined by cs2_flash_dur. this bit has no effect if cs2_trigsrc is set to 1. reset by state machine. default held in metal mask. 12 cs2_flash_rate 0 determines the flash rate 0 = normal operation. once per trigger (either register bit or gpio) 1 = flash will be internally triggered every 4 seconds reset by state machine. 9:8 cs2_flash_dur[1:0] 00 sets duration of flash 00 = 32ms 01 = 64ms 10 = 96ms 11 = 1024ms reset by state machine. 5:4 cs2_off_ramp[1:0] 00 switch-off ramp duration led mode- 00 = instant (no ramp) 01 = 0.25s 10 = 0.5s 11 = 1s flash mode- 00 = instant (no ramp) 01 = 1.95ms 10 = 3.91ms 11 = 7.8ms reset by state machine. 1:0 cs2_on_ramp[1:0] 00 switch-on ramp duration led mode- 00 = instant (no ramp) 01 = 0.25s 10 = 0.5s 11 = 1s flash mode- 00 = instant (no ramp) 01 = 1.95ms 10 = 3.91ms 11 = 7.8ms reset by state machine. register afh csb flash control
production data wm8350 w pd, march 2010, rev 4.2 295 register address bit label default description refer to r176 (b0h) dcdc/ldo requested 15 ls_ena 0 limit switch enable 0 = disabled 1 = enabled note: internal conditions may prevent the converter from actually switching on - see dcdc/ldo status register for actual converter status. reset by state machine. default held in metal mask. 11 ldo4_ena 0 ldo4 enable 0 = disabled 1 = enabled note: internal conditions may prevent the converter from actually switching on - see dcdc/ldo status register for actual converter status. reset by state machine. default held in metal mask. 10 ldo3_ena 0 ldo3 enable 0 = disabled 1 = enabled note: internal conditions may prevent the converter from actually switching on - see dcdc/ldo status register for actual converter status. reset by state machine. default held in metal mask. 9 ldo2_ena 0 ldo2 enable 0 = disabled 1 = enabled note: internal conditions may prevent the converter from actually switching on - see dcdc/ldo status register for actual converter status. reset by state machine. default held in metal mask. 8 ldo1_ena 0 ldo1 enable 0 = disabled 1 = enabled note: internal conditions may prevent the converter from actually switching on - see dcdc/ldo status register for actual converter status. reset by state machine. default held in metal mask. 5 dc6_ena 0 dcdc6 converter enable 0 = disabled 1 = enabled note: internal conditions may prevent the converter from actually switching on - see dcdc/ldo status register for actual converter status. reset by state machine. default held in metal mask. 4 dc5_ena 0 dcdc5 converter enable 0 = disabled 1 = enabled note: internal conditions may prevent the converter from actually switching on - see dcdc/ldo status register for actual converter status. reset by state machine. default held in metal mask. 3 dc4_ena 0 dcdc4 converter enable 0 = disabled 1 = enabled note: internal conditions may prevent the converter from actually switching on - see dcdc/ldo status register for actual converter status.
wm8350 production data w pd, march 2010, rev 4.2 296 register address bit label default description refer to reset by state machine. default held in metal mask. 2 dc3_ena 0 dcdc3 converter enable 0 = disabled 1 = enabled note: internal conditions may prevent the converter from actually switching on - see dcdc/ldo status register for actual converter status. reset by state machine. default held in metal mask. 1 dc2_ena 0 dcdc2 converter enable 0 = disabled 1 = enabled note: internal conditions may prevent the converter from actually switching on - see dcdc/ldo status register for actual converter status. reset by state machine. default held in metal mask. 0 dc1_ena 0 dcdc1 converter enable 0 = disabled 1 = enabled note: internal conditions may prevent the converter from actually switching on - see dcdc/ldo status register for actual converter status. reset by state machine. default held in metal mask. register b0h dcdc/ldo requested register address bit label default description refer to r177 (b1h) dcdc active options 15 dcdc_disclks 0 dcdc clock enable 0 = dcdc clocks enabled 1 = dcdc1, 3, 4 and 6 clocks disabled. note: this feature is useful in reducing the current consumption if all 4 dcdcs are in ldo mode. the requirement is to put them in ldo mode and then at least 100us is required before clocks are disabled. again while coming out of ldo mode first enable the clocks and then at least 100us wait and then come out of ldo mode. this can only be used if the processor is alive to set and unset this bit. reset by state machine. 13:12 puto[1:0] 00 power up time out value for all converters 00 = 0.5ms 01 = 2ms 10 = 32ms 11 = 256ms reset by state machine. 5 dc6_active 1 dc-dc 6 active mode 0 = select standby mode 1 = select active mode reset by state machine. 3 dc4_active 1 dc-dc 4 active mode 0 = select standby mode 1 = select active mode reset by state machine. 2 dc3_active 1 dc-dc 3 active mode 0 = select standby mode 1 = select active mode
production data wm8350 w pd, march 2010, rev 4.2 297 register address bit label default description refer to reset by state machine. 0 dc1_active 1 dc-dc 1 active mode 0 = select standby mode 1 = select active mode reset by state machine. register b1h dcdc active options register address bit label default description refer to r178 (b2h) dcdc sleep options 5 dc6_sleep 0 dc-dc 6 sleep mode 0 = normal dc-dc operation 1 = select ldo mode reset by state machine. 3 dc4_sleep 0 dc-dc 4 sleep mode 0 = normal dc-dc operation 1 = select ldo mode reset by state machine. 2 dc3_sleep 0 dc-dc 3 sleep mode 0 = normal dc-dc operation 1 = select ldo mode reset by state machine. 0 dc1_sleep 0 dc-dc 1 sleep mode 0 = normal dc-dc operation 1 = select ldo mode reset by state machine. register b2h dcdc sleep options register address bit label default description refer to r179 (b3h) power-check comparator 14 pccmp_erract 0 action when supply falls below pccmp_off_thr level 0 = generate critical supply interrupt only 1 = generate interrupt and trigger hard shut down reset by state machine. 12 pccomp_hib_mode 0 function of hyst comp in the hibernate state 0 = hyst comp is not used in hibernate state 1 = hyst comp is on in the hibernate state 6:4 pccmp_off_thr[2:0] 010 power check comparator critical battery ("system turn off") threshold value 000 = 2.9v 001 = 3.0v ? 111 = 3.6v protected by security key. default held in metal mask. 2:0 pccmp_on_thr[2:0] 101 power check comparator ("system turn on") threshold value 000 = 2.9v 001 = 3.0v ? 111 = 3.6v
wm8350 production data w pd, march 2010, rev 4.2 298 register address bit label default description refer to protected by security key. default held in metal mask. register b3h power-check comparator register address bit label default description refer to r180 (b4h) dcdc1 control 15:14 dc1_cap[1:0] 00 dc-dc1 output capacitor 00 = 10uf, 30uf, 45uf 01 = 60uf, 85uf 10 = not used 11 = 100uf reset by state machine. 11 dc1_disovp 0 over voltage protection 0 = enabled 1 = disabled reset by state machine. default held in metal mask. 10 dc1_opflt 0 enable discharge of dc-dc1 outputs when dc-dc1 is disabled 0 = enabled - output to be discharged 1 = disabled - output is left floating 6:0 dc1_vsel[6:0] 000_1110 000_0110 001_0010 110_0010 dc-dc1 converter output voltage settings in 25mv steps. maximum output = 3.4v. 110 0110 = 3.4v 110 0010 = 3.3v 101 0110 = 3.0v 100 1110 = 2.8v ?? 010 0110 = 1.8v 000 1110 = 1.2v 000 0110 = 1.0v 000 0000 = 0.85v reset by state machine. default held in metal mask. register b4h dcdc1 control register address bit label default description refer to r181 (b5h) dcdc1 timeouts 15:14 dc1_erract[1:0] 00 action to take on dc-dc1 fault (as well as generating an interrupt): 00 = ignore 01 = shut down converter 10 = shut down system 11 = reserved (shut down system) reset by state machine. default held in metal mask. 13:10 dc1_enslot[3:0] 0000 0100 0001 0010 time slot for dc-dc1 start-up 0000 = disabled (do not start up) 0001 = start-up in time slot 1 ? (total 14 slots available) 1110 = start-up in time slot 14 1111 = start-up on entering active reset by state machine. default held in metal
production data wm8350 w pd, march 2010, rev 4.2 299 register address bit label default description refer to mask. 9:6 dc1_sdslot[3:0] 0000 time slot for dc-dc1 shutdown. 0000 = shut down on entering off 0001 = shutdown in time slot 1 ?. (total 14 slots available) 1110 = shutdown in time slot 14 1111 = shut down on entering off register b5h dcdc1 timeouts register address bit label default description refer to r182 (b6h) dcdc1 low power 14:12 dc1_hib_mode[2:0] 001 dc-dc1 hibernate behaviour: 000 = use current settings (no change) 001 = select voltage image settings 010 = force standby mode 011 = force standby mode and voltage image settings. 100 = force ldo mode 101 = force ldo mode and voltage image settings. 110 = reserved. 111 = disable output 9:8 dc1_hib_trig[1:0] 00 dc-dc1 hibernate signal select 00 = hibernate register bit 01 = l_pwr1 10 = l_pwr2 11 = l_pwr3 note that hibernate is also selected when a gpio hibernate input is asserted. reset by state machine. default held in metal mask. 6:0 dc1_vimg[6:0] 000_0110 dc-dc1 converter output image voltage settings in 25mv steps. maximum output = 3.4v. 110 0110 = 3.4v 110 0010 = 3.3v 101 0110 = 3.0v 100 1110 = 2.8v ?? 010 0110 = 1.8v 000 1110 = 1.2v 000 0110 = 1.0v 000 0000 = 0.85v register b6h dcdc1 low power
wm8350 production data w pd, march 2010, rev 4.2 300 register address bit label default description refer to r183 (b7h) dcdc2 control 14 dc2_mode 0 dc-dc2 converter mode 0 = boost mode 1 = switch mode reset by state machine. 12 dc2_hib_mode 0 dc-dc2 hibernate behaviour: 0 = continue as in active state 1 = disable converter output reset by state machine. 9:8 dc2_hib_trig[1:0] 00 dc-dc2 hibernate signal select 00 = hibernate register bit 01 = l_pwr1 10 = l_pwr2 11 = l_pwr3 note that hibernate is also selected when a gpio hibernate input is asserted. reset by state machine. 6 dc2_ilim 0 dc-dc2 peak current limit select 0 = higher peak current 1 = lower peak current reset by state machine. default held in metal mask. 4 dc2_rmph 1 dc-dc2 compensation ramp {dc2_rmph, dc2_rmpl} 00 = 20v < vout 30v 01 = 10v < vout 20v 10 = 5v < vout 10v 11 = vout 5v (will be chosen automatically if dc2_fbsrc=11) reset by state machine. default held in metal mask. 3 dc2_rmpl 1 dc-dc2 compensation ramp {dc2_rmph, dc2_rmpl} 00 = 20v < vout 30v 01 = 10v < vout 20v 10 = 5v < vout 10v 11 = vout 5v (will be chosen automatically if dc2_fbsrc=11) reset by state machine. default held in metal mask. 1:0 dc2_fbsrc[1:0] 00 dc-dc2 voltage feedback selection 00 = voltage feedback (using external resistor divider on pin fb2) 01 = current sink isinka used as feedback 10 = current sink isinkb used as feedback 11 = voltage feedback (using internal resistor divider on pin usb) reset by state machine. default held in metal mask. register b7h dcdc2 control
production data wm8350 w pd, march 2010, rev 4.2 301 register address bit label default description refer to r184 (b8h) dcdc2 timeouts 15:14 dc2_erract[1:0] 00 action to take on dc-dc2 fault (as well as generating an interrupt): 00 = ignore 01 = shut down converter 10 = shut down system 11 = reserved (shut down system) reset by state machine. default held in metal mask. 13:10 dc2_enslot[3:0] 0000 0000 0000 0000 time slot for dc-dc2 start-up 0000 = disabled (do not start up) 0001 = start-up in time slot 1 ? (total 14 slots available) 1110 = start-up in time slot 14 1111 = start-up on entering active reset by state machine. default held in metal mask. 9:6 dc2_sdslot[3:0] 0000 time slot for dc-dc2 shutdown. 0000 = shut down on entering off 0001 = shutdown in time slot 1 ?. (total 14 slots available) 1110 = shutdown in time slot 14 1111 = shut down on entering off register b8h dcdc2 timeouts register address bit label default description refer to r186 (bah) dcdc3 control 11 dc3_disovp 0 over voltage protection 0 = enabled 1 = disabled reset by state machine. default held in metal mask. 10 dc3_opflt 0 enable discharge of dc-dc3 outputs when dc-dc3 is disabled 0 = enabled - output to be discharged 1 = disabled - output is left floating 6:0 dc3_vsel[6:0] 000_0000 010_0110 010_1110 000_1110 dc-dc3 converter output voltage settings in 25mv steps. maximum output = 3.4v. 110 0110 = 3.4v 110 0010 = 3.3v 101 0110 = 3.0v 100 1110 = 2.8v ?? 010 0110 = 1.8v 000 1110 = 1.2v 000 0110 = 1.0v 000 0000 = 0.85v reset by state machine. default held in metal mask. register bah dcdc3 control
wm8350 production data w pd, march 2010, rev 4.2 302 register address bit label default description refer to r187 (bbh) dcdc3 timeouts 15:14 dc3_erract[1:0] 00 action to take on dc-dc3 fault (as well as generating an interrupt): 00 = ignore 01 = shut down converter 10 = shut down system 11 = reserved (shut down system) reset by state machine. default held in metal mask. 13:10 dc3_enslot[3:0] 0000 0001 0000 0000 time slot for dc-dc3 start-up 0000 = disabled (do not start up) 0001 = start-up in time slot 1 ? (total 14 slots available) 1110 = start-up in time slot 14 1111 = start-up on entering active reset by state machine. default held in metal mask. 9:6 dc3_sdslot[3:0] 0000 time slot for dc-dc3 shutdown. 0000 = shut down on entering off 0001 = shutdown in time slot 1 ?. (total 14 slots available) 1110 = shutdown in time slot 14 1111 = shut down on entering off register bbh dcdc3 timeouts register address bit label default description refer to r188 (bch) dcdc3 low power 14:12 dc3_hib_mode[2:0] 000 dc-dc3 hibernate behaviour: 000 = use current settings (no change) 001 = select voltage image settings 010 = force standby mode 011 = force standby mode and voltage image settings. 100 = force ldo mode 101 = force ldo mode and voltage image settings. 110 = reserved. 111 = disable output reset by state machine. default held in metal mask. 9:8 dc3_hib_trig[1:0] 00 dc-dc3 hibernate signal select 00 = hibernate register bit 01 = l_pwr1 10 = l_pwr2 11 = l_pwr3 note that hibernate is also selected when a gpio hibernate input is asserted. reset by state machine. default held in metal mask. 6:0 dc3_vimg[6:0] 000_0110 dc-dc3 converter output image voltage settings in 25mv steps. maximum output = 3.4v. 110 0110 = 3.4v 110 0010 = 3.3v 101 0110 = 3.0v
production data wm8350 w pd, march 2010, rev 4.2 303 register address bit label default description refer to 100 1110 = 2.8v ?? 010 0110 = 1.8v 000 1110 = 1.2v 000 0110 = 1.0v 000 0000 = 0.85v register bch dcdc3 low power register address bit label default description refer to r189 (bdh) dcdc4 control 11 dc4_disovp 0 over voltage protection 0 = enabled 1 = disabled reset by state machine. default held in metal mask. 10 dc4_opflt 0 enable discharge of dc-dc4 outputs when dc-dc4 is disabled 0 = enabled - output to be discharged 1 = disabled - output is left floating 6:0 dc4_vsel[6:0] 000_0000 101_0110 000_1110 000_0110 dc-dc4 converter output voltage settings in 25mv steps. maximum output = 3.4v. 110 0110 = 3.4v 110 0010 = 3.3v 101 0110 = 3.0v 100 1110 = 2.8v ?? 010 0110 = 1.8v 000 1110 = 1.2v 000 0110 = 1.0v 000 0000 = 0.85v reset by state machine. default held in metal mask. register bdh dcdc4 control
wm8350 production data w pd, march 2010, rev 4.2 304 register address bit label default description refer to r190 (beh) dcdc4 timeouts 15:14 dc4_erract[1:0] 00 action to take on dc-dc4 fault (as well as generating an interrupt): 00 = ignore 01 = shut down converter 10 = shut down system 11 = reserved (shut down system) reset by state machine. default held in metal mask. 13:10 dc4_enslot[3:0] 0000 0001 0000 0011 time slot for dc-dc4 start-up 0000 = disabled (do not start up) 0001 = start-up in time slot 1 ? (total 14 slots available) 1110 = start-up in time slot 14 1111 = start-up on entering active reset by state machine. default held in metal mask. 9:6 dc4_sdslot[3:0] 0000 time slot for dc-dc4 shutdown. 0000 = shut down on entering off 0001 = shutdown in time slot 1 ?. (total 14 slots available) 1110 = shutdown in time slot 14 1111 = shut down on entering off register beh dcdc4 timeouts register address bit label default description refer to r191 (bfh) dcdc4 low power 14:12 dc4_hib_mode[2:0] 000 dc-dc4 hibernate behaviour: 000 = use current settings (no change) 001 = select voltage image settings 010 = force standby mode 011 = force standby mode and voltage image settings. 100 = force ldo mode 101 = force ldo mode and voltage image settings. 110 = reserved. 111 = disable output reset by state machine. default held in metal mask. 9:8 dc4_hib_trig[1:0] 00 dc-dc4 hibernate signal select 00 = hibernate register bit 01 = l_pwr1 10 = l_pwr2 11 = l_pwr3 note that hibernate is also selected when a gpio hibernate input is asserted. reset by state machine. default held in metal mask. 6:0 dc4_vimg[6:0] 000_0110 dc-dc4 converter output image voltage settings in 25mv steps. maximum output = 3.4v. 110 0110 = 3.4v 110 0010 = 3.3v
production data wm8350 w pd, march 2010, rev 4.2 305 register address bit label default description refer to 101 0110 = 3.0v 100 1110 = 2.8v ?? 010 0110 = 1.8v 000 1110 = 1.2v 000 0110 = 1.0v 000 0000 = 0.85v register bfh dcdc4 low power register address bit label default description refer to r192 (c0h) dcdc5 control 14 dc5_mode 0 dc-dc5 converter mode 0 = boost mode 1 = switch mode reset by state machine. 12 dc5_hib_mode 0 dc-dc5 hibernate behaviour: 0 = continue as in active state 1 = disable converter output reset by state machine. 9:8 dc5_hib_trig[1:0] 00 dc-dc5 hibernate signal select 00 = hibernate register bit 01 = l_pwr1 10 = l_pwr2 11 = l_pwr3 note that hibernate is also selected when a gpio hibernate input is asserted. reset by state machine. 6 dc5_ilim 0 dc-dc5 peak current limit select 0 = higher peak current 1 = lower peak current reset by state machine. default held in metal mask. 4 dc5_rmph 0 dc-dc5 compensation ramp {dc5_rmph, dc5_rmpl} 00 = 20v < vout 30v 01 = 10v < vout 20v 10 = 5v < vout 10v 11 = vout 5v (will be chosen automatically if dc5_fbsrc=11) reset by state machine. default held in metal mask. 3 dc5_rmpl 1 dc-dc5 compensation ramp {dc5_rmph, dc5_rmpl} 00 = 20v < vout 30v 01 = 10v < vout 20v 10 = 5v < vout 10v 11 = vout 5v (will be chosen automatically if dc5_fbsrc=11) reset by state machine. default held in metal mask. 1:0 dc5_fbsrc[1:0] 00 dc-dc5 voltage feedback selection 00 = voltage feedback (using external resistor divider on pin fb5) 01 = current sink isinka used as feedback
wm8350 production data w pd, march 2010, rev 4.2 306 register address bit label default description refer to 10 = current sink isinkb used as feedback 11 = voltage feedback (using internal resistor divider on pin usb) reset by state machine. default held in metal mask. register c0h dcdc5 control register address bit label default description refer to r193 (c1h) dcdc5 timeouts 15:14 dc5_erract[1:0] 00 action to take on dc-dc5 fault (as well as generating an interrupt): 00 = ignore 01 = shut down converter 10 = shut down system 11 = reserved (shut down system) reset by state machine. default held in metal mask. 13:10 dc5_enslot[3:0] 0000 0000 0000 0000 time slot for dc-dc5 start-up 0000 = disabled (do not start up) 0001 = start-up in time slot 1 ? (total 14 slots available) 1110 = start-up in time slot 14 1111 = start-up on entering active reset by state machine. default held in metal mask. 9:6 dc5_sdslot[3:0] 0000 time slot for dc-dc5 shutdown. 0000 = shut down on entering off 0001 = shutdown in time slot 1 ?. (total 14 slots available) 1110 = shutdown in time slot 14 1111 = shut down on entering off register c1h dcdc5 timeouts
production data wm8350 w pd, march 2010, rev 4.2 307 register address bit label default description refer to r195 (c3h) dcdc6 control 15:14 dc6_cap[1:0] 00 dc-dc6 output capacitor 00 = 10uf, 30uf, 45uf 01 = 60uf, 85uf 10 = not used 11 = 100uf 11 dc6_disovp 0 over voltage protection 0 = enabled 1 = disabled reset by state machine. default held in metal mask. 10 dc6_opflt 0 enable discharge of dc-dc6 outputs when dc-dc6 is disabled 0 = enabled - output to be discharged 1 = disabled - output is left floating 6:0 dc6_vsel[6:0] 000_0000 000_1010 010_0110 010_0110 dc-dc6 converter output voltage settings in 25mv steps. maximum output = 3.4v. 110 0110 = 3.4v 110 0010 = 3.3v 101 0110 = 3.0v 100 1110 = 2.8v ?? 010 0110 = 1.8v 000 1110 = 1.2v 000 0110 = 1.0v 000 0000 = 0.85v reset by state machine. default held in metal mask. register c3h dcdc6 control register address bit label default description refer to r196 (c4h) dcdc6 timeouts 15:14 dc6_erract[1:0] 00 action to take on dc-dc6 fault (as well as generating an interrupt): 00 = ignore 01 = shut down converter 10 = shut down system 11 = reserved (shut down system) reset by state machine. default held in metal mask. 13:10 dc6_enslot[3:0] 0000 0100 0011 0001 time slot for dc-dc6 start-up 0000 = disabled (do not start up) 0001 = start-up in time slot 1 ? (total 14 slots available) 1110 = start-up in time slot 14 1111 = start-up on entering active reset by state machine. default held in metal mask. 9:6 dc6_sdslot[3:0] 0000 time slot for dc-dc6 shutdown. 0000 = shut down on entering off 0001 = shutdown in time slot 1 ?. (total 14 slots available) 1110 = shutdown in time slot 14
wm8350 production data w pd, march 2010, rev 4.2 308 register address bit label default description refer to 1111 = shut down on entering off register c4h dcdc6 timeouts register address bit label default description refer to r197 (c5h) dcdc6 low power 14:12 dc6_hib_mode[2:0] 000 dc-dc6 hibernate behaviour: 000 = use current settings (no change) 001 = select voltage image settings 010 = force standby mode 011 = force standby mode and voltage image settings. 100 = force ldo mode 101 = force ldo mode and voltage image settings. 110 = reserved. 111 = disable output reset by state machine. default held in metal mask. 9:8 dc6_hib_trig[1:0] 00 dc-dc6 hibernate signal select 00 = hibernate register bit 01 = l_pwr1 10 = l_pwr2 11 = l_pwr3 note that hibernate is also selected when a gpio hibernate input is asserted. reset by state machine. default held in metal mask. 6:0 dc6_vimg[6:0] 000_0110 dc-dc6 converter output image voltage settings in 25mv steps. maximum output = 3.4v. 110 0110 = 3.4v 110 0010 = 3.3v 101 0110 = 3.0v 100 1110 = 2.8v ?? 010 0110 = 1.8v 000 1110 = 1.2v 000 0110 = 1.0v 000 0000 = 0.85v register c5h dcdc6 low power
production data wm8350 w pd, march 2010, rev 4.2 309 register address bit label default description refer to r199 (c7h) limit switch control 15:14 ls_erract[1:0] 00 current limit detection behaviour 00 = ignore 01 = disable switch 10 = shut down system 11 = shut down system reset by state machine. default held in metal mask. 13:10 ls_enslot[3:0] 0000 time slot for limit switch start-up 0000 = disabled (do not start up) 0001 = start-up in time slot 1 ? (total 14 slots available) 1110 = start-up in time slot 14 1111 = start-up on entering active reset by state machine. default held in metal mask. 9:6 ls_sdslot[3:0] 0000 time slot for limit switch shutdown. 0000 = shut down on entering off 0001 = shutdown in time slot 1 ?. (total 14 slots available) 1110 = shutdown in time slot 14 1111 = shut down on entering off 4 ls_hib_mode 0 limit switch hibernate mode setting 0 = disabled 1 = leave setting as in active mode 1 ls_hib_prot 1 controls the bulk detection circuit when limit switch is disabled in hibernate mode. 0 = bulk detection disabled 1 = bulk detection enabled 0 ls_prot 1 controls the bulk detection circuit when limit switch is disabled in active mode. 0 = bulk detection disabled 1 = bulk detection enabled register c7h limit switch control register address bit label default description refer to r200 (c8h) ldo1 control 14 ldo1_swi 0 ldo1 regulator mode 0 = ldo voltage regulator 1 = current-limited switch (no voltage regulation, ldo1_vsel has no effect) reset by state machine. default held in metal mask. 10 ldo1_opflt 0 enable discharge of ldo1 outputs when ldo1 is disabled 0 = enabled - output to be discharged 1 = disabled - output is left floating note - if ldo regulators 1, 2, 3 and 4 are all disabled, then the outputs will all be discharged, regardless of the ldo n _opflt bit. 4:0 ldo1_vsel[4:0] 1_1100 0_0010 1_1100 0_0010 ldo1 regulator output voltage (when ldo1_swi=0) 1 1111 = 3.3v ? (100mv steps) 1 0000 = 1.8v 0 1111 = 1.65v ? (50mv steps)
wm8350 production data w pd, march 2010, rev 4.2 310 register address bit label default description refer to 0 0000 = 0.9v reset by state machine. default held in metal mask. register c8h ldo1 control register address bit label default description refer to r201 (c9h) ldo1 timeouts 15:14 ldo1_erract[1:0] 00 action to take on ldo1 fault (as well as generating an interrupt): 00 = ignore 01 = shut down regulator 10 = shut down system 11 = reserved (shut down system) reset by state machine. default held in metal mask. 13:10 ldo1_enslot[3:0] 0000 0011 0000 0000 time slot for ldo1 start-up 0000 = disabled (do not start up) 0001 = start-up in time slot 1 ? (total 14 slots available) 1110 = start-up in time slot 14 1111 = start up on entering active reset by state machine. default held in metal mask. 9:6 ldo1_sdslot[3:0] 0000 time slot for ldo1 shutdown. 0000 = shut down on entering off 0001 = shutdown in time slot 1 ?. (total 14 slots available) 1110 = shutdown in time slot 14 1111 = shut down on entering off register c9h ldo1 timeouts register address bit label default description refer to r202 (cah) ldo1 low power 13:12 ldo1_hib_mode[1:0] 00 ldo1 hibernate behaviour: 00 = select voltage image settings 01 = disable output 10 = reserved 11 = reserved reset by state machine. default held in metal mask. 9:8 ldo1_hib_trig[1:0] 00 ldo1 hibernate signal select 00 = hibernate register bit 01 = l_pwr1 10 = l_pwr2 11 = l_pwr3 reset by state machine. default held in metal mask. 4:0 ldo1_vimg[4:0] 1_1100 ldo1 regulator output image voltage 1 1111 = 3.3v ? (100mv steps) 1 0000 = 1.8v 0 1111 = 1.65v ? (50mv steps)
production data wm8350 w pd, march 2010, rev 4.2 311 register address bit label default description refer to 0 0000 = 0.9v register cah ldo1 low power register address bit label default description refer to r203 (cbh) ldo2 control 14 ldo2_swi 0 ldo2 regulator mode 0 = ldo voltage regulator 1 = current-limited switch (no voltage regulation, ldo2_vsel has no effect) reset by state machine. default held in metal mask. 10 ldo2_opflt 0 enable discharge of ldo2 outputs when ldo2 is disabled 0 = enabled - output to be discharged 1 = disabled - output is left floating note - if ldo regulators 1, 2, 3 and 4 are all disabled, then the outputs will all be discharged, regardless of the ldo n _opflt bit. 4:0 ldo2_vsel[4:0] 1_1011 1_1111 1_0000 1_1010 ldo2 regulator output voltage (when ldo2_swi=0) 1 1111 = 3.3v ? (100mv steps) 1 0000 = 1.8v 0 1111 = 1.65v ? (50mv steps) 0 0000 = 0.9v reset by state machine. default held in metal mask. register cbh ldo2 control register address bit label default description refer to r204 (cch) ldo2 timeouts 15:14 ldo2_erract[1:0] 00 action to take on ldo2 fault (as well as generating an interrupt): 00 = ignore 01 = shut down regulator 10 = shut down system 11 = reserved (shut down system) reset by state machine. default held in metal mask. 13:10 ldo2_enslot[3:0] 0000 0010 0010 0000 time slot for ldo2 start-up 0000 = disabled (do not start up) 0001 = start-up in time slot 1 ? (total 14 slots available) 1110 = start-up in time slot 14 1111 = start up on entering active reset by state machine. default held in metal mask. 9:6 ldo2_sdslot[3:0] 0000 time slot for ldo2 shutdown. 0000 = shut down on entering off 0001 = shutdown in time slot 1 ?. (total 14 slots available) 1110 = shutdown in time slot 14 1111 = shut down on entering off register cch ldo2 timeouts
wm8350 production data w pd, march 2010, rev 4.2 312 register address bit label default description refer to r205 (cdh) ldo2 low power 13:12 ldo2_hib_mode[1:0] 00 ldo2 hibernate behaviour: 00 = select voltage image settings 01 = disable output 10 = reserved 11 = reserved reset by state machine. default held in metal mask. 9:8 ldo2_hib_trig[1:0] 00 ldo2 hibernate signal select 00 = hibernate register bit 01 = l_pwr1 10 = l_pwr2 11 = l_pwr3 reset by state machine. default held in metal mask. 4:0 ldo2_vimg[4:0] 1_1100 ldo2 regulator output image voltage 1 1111 = 3.3v ? (100mv steps) 1 0000 = 1.8v 0 1111 = 1.65v ? (50mv steps) 0 0000 = 0.9v register cdh ldo2 low power register address bit label default description refer to r206 (ceh) ldo3 control 14 ldo3_swi 0 ldo3 regulator mode 0 = ldo voltage regulator 1 = current-limited switch (no voltage regulation, ldo3_vsel has no effect) reset by state machine. default held in metal mask. 10 ldo3_opflt 0 enable discharge of ldo3 outputs when ldo3 is disabled 0 = enabled - output to be discharged 1 = disabled - output is left floating note - if ldo regulators 1, 2, 3 and 4 are all disabled, then the outputs will all be discharged, regardless of the ldo n _opflt bit. 4:0 ldo3_vsel[4:0] 1_1011 1_1100 1_0101 1_1111 ldo3 regulator output voltage (when ldo3_swi=0) 1 1111 = 3.3v ? (100mv steps) 1 0000 = 1.8v 0 1111 = 1.65v ? (50mv steps) 0 0000 = 0.9v reset by state machine. default held in metal mask. register ceh ldo3 control
production data wm8350 w pd, march 2010, rev 4.2 313 register address bit label default description refer to r207 (cfh) ldo3 timeouts 15:14 ldo3_erract[1:0] 00 action to take on ldo3 fault (as well as generating an interrupt): 00 = ignore 01 = shut down regulator 10 = shut down system 11 = reserved (shut down system) reset by state machine. default held in metal mask. 13:10 ldo3_enslot[3:0] 0000 0001 0000 0000 time slot for ldo3 start-up 0000 = disabled (do not start up) 0001 = start-up in time slot 1 ? (total 14 slots available) 1110 = start-up in time slot 14 1111 = start up on entering active reset by state machine. default held in metal mask. 9:6 ldo3_sdslot[3:0] 0000 time slot for ldo3 shutdown. 0000 = shut down on entering off 0001 = shutdown in time slot 1 ?. (total 14 slots available) 1110 = shutdown in time slot 14 1111 = shut down on entering off register cfh ldo3 timeouts register address bit label default description refer to r208 (d0h) ldo3 low power 13:12 ldo3_hib_mode[1:0] 00 ldo3 hibernate behaviour: 00 = select voltage image settings 01 = disable output 10 = reserved 11 = reserved reset by state machine. default held in metal mask. 9:8 ldo3_hib_trig[1:0] 00 ldo3 hibernate signal select 00 = hibernate register bit 01 = l_pwr1 10 = l_pwr2 11 = l_pwr3 reset by state machine. default held in metal mask. 4:0 ldo3_vimg[4:0] 1_1100 ldo3 regulator output image voltage 1 1111 = 3.3v ? (100mv steps) 1 0000 = 1.8v 0 1111 = 1.65v ? (50mv steps) 0 0000 = 0.9v register d0h ldo3 low power
wm8350 production data w pd, march 2010, rev 4.2 314 register address bit label default description refer to r209 (d1h) ldo4 control 14 ldo4_swi 0 ldo4 regulator mode 0 = ldo voltage regulator 1 = current-limited switch (no voltage regulation, ldo4_vsel has no effect) reset by state machine. default held in metal mask. 10 ldo4_opflt 0 enable discharge of ldo4 outputs when ldo4 is disabled 0 = enabled - output to be discharged 1 = disabled - output is left floating note - if ldo regulators 1, 2, 3 and 4 are all disabled, then the outputs will all be discharged, regardless of the ldo n _opflt bit. 4:0 ldo4_vsel[4:0] 1_1011 0_0100 1_1010 1_1111 ldo4 regulator output voltage (when ldo4_swi=0) 1 1111 = 3.3v ? (100mv steps) 1 0000 = 1.8v 0 1111 = 1.65v ? (50mv steps) 0 0000 = 0.9v reset by state machine. default held in metal mask. register d1h ldo4 control register address bit label default description refer to r210 (d2h) ldo4 timeouts 15:14 ldo4_erract[1:0] 00 action to take on ldo4 fault (as well as generating an interrupt): 00 = ignore 01 = shut down regulator 10 = shut down system 11 = reserved (shut down system) reset by state machine. default held in metal mask. 13:10 ldo4_enslot[3:0] 0000 0010 0000 0000 time slot for ldo4 start-up 0000 = disabled (do not start up) 0001 = start-up in time slot 1 ? (total 14 slots available) 1110 = start-up in time slot 14 1111 = start up on entering active reset by state machine. default held in metal mask. 9:6 ldo4_sdslot[3:0] 0000 time slot for ldo4 shutdown. 0000 = shut down on entering off 0001 = shutdown in time slot 1 ?. (total 14 slots available) 1110 = shutdown in time slot 14 1111 = shut down on entering off register d2h ldo4 timeouts
production data wm8350 w pd, march 2010, rev 4.2 315 register address bit label default description refer to r211 (d3h) ldo4 low power 13:12 ldo4_hib_mode[1:0] 00 ldo4 hibernate behaviour: 00 = select voltage image settings 01 = disable output 10 = reserved 11 = reserved reset by state machine. default held in metal mask. 9:8 ldo4_hib_trig[1:0] 00 ldo4 hibernate signal select 00 = hibernate register bit 01 = l_pwr1 10 = l_pwr2 11 = l_pwr3 reset by state machine. default held in metal mask. 4:0 ldo4_vimg[4:0] 1_1100 ldo4 regulator output image voltage 1 1111 = 3.3v ? (100mv steps) 1 0000 = 1.8v 0 1111 = 1.65v ? (50mv steps) 0 0000 = 0.9v register d3h ldo4 low power register address bit label default description refer to r215 (d7h) vcc_fault masks 15 ls_fault 0 limit switch fault mask for the /vcc_fault 0 = don't mask converter fault 1 = mask converter fault reset by state machine. 11 ldo4_fault 0 ldo4 fault mask for the /vcc_fault 0 = don't mask converter fault 1 = mask converter fault reset by state machine. 10 ldo3_fault 0 ldo3 fault mask for the /vcc_fault 0 = don't mask converter fault 1 = mask converter fault reset by state machine. 9 ldo2_fault 0 ldo2 fault mask for the /vcc_fault 0 = don't mask converter fault 1 = mask converter fault reset by state machine. 8 ldo1_fault 0 ldo1 fault mask for the /vcc_fault 0 = don't mask converter fault 1 = mask converter fault reset by state machine. 5 dc6_fault 0 dcdc6 fault mask for the /vcc_fault 0 = don't mask converter fault 1 = mask converter fault reset by state machine. 4 dc5_fault 0 dcdc5 fault mask for the /vcc_fault 0 = don't mask converter fault
wm8350 production data w pd, march 2010, rev 4.2 316 register address bit label default description refer to 1 = mask converter fault reset by state machine. 3 dc4_fault 0 dcdc4 fault mask for the /vcc_fault 0 = don't mask converter fault 1 = mask converter fault reset by state machine. 2 dc3_fault 0 dcdc3 fault mask for the /vcc_fault 0 = don't mask converter fault 1 = mask converter fault reset by state machine. 1 dc2_fault 0 dcdc2 fault mask for the /vcc_fault 0 = don't mask converter fault 1 = mask converter fault reset by state machine. 0 dc1_fault 0 dcdc1 fault mask for the /vcc_fault 0 = don't mask converter fault 1 = mask converter fault reset by state machine. register d7h vcc_fault masks register address bit label default description refer to r216 (d8h) main bandgap control 15 mbg_load_fuses 0 enables the current to the bandgap trim fuses. this must be set to 1 when writing the fuses. to read the trim value held in the fuse, this bit must be set and then reset. register d8h main bandgap control register address bit label default description refer to r217 (d9h) osc control 15 osc_load_fuses 0 enables the current to the bandgap trim fuses. this must be set to 1 when writing the fuses. to read the trim value, this bit must be set and then reset. protected by security key. register d9h osc control
production data wm8350 w pd, march 2010, rev 4.2 317 register address bit label default description refer to r218 (dah) rtc tick control 15 rtc_tick_ena 1 1 1 1 enable rtc counting (instruction only) 0 = disabled 1 = enabled protected by security key. reset by state machine. default held in metal mask. 14 rtc_ticksts 0 status of tick request. this bit can be used to ensure the rtc is using the value of rtc_tick_ena. 0 = disabled 1 = enabled protected by security key. 13 rtc_clksrc 0 0 0 0 rtc 32khz clock source. 0 = take 32khz from 32k osc 1 = take 32khz from gpiox (alternative gpio function) protected by security key. reset by state machine. default held in metal mask. 12 osc32k_ena 1 1 1 1 on chip 32khz osc enable 0 = disable 1 = enable protected by security key. reset by state machine. default held in metal mask. 9:0 rtc_trim[9:0] 00_0000_0000 rtc frequency trim. used to adjust the count value of the tick gen block to compensate for crystal inaccuracies. rtc frequency trim is a 10bit fixed point <4,6> 2's complement number. msb scaling = -8hz. the register indicates the error (in hz) with respect to the ideal 32768hz) of the input crystal frequency. e.g.: actual crystal freq: 32769.00hz: required trim 0xb0001_000000 (+1.000000) actual crystal freq: 32767.00hz: required trim 0xb1111_000000 (-1.000000) actual crystal freq: 32775.58hz: required trim 0xb0111_100101 (+7.578125) actual crystal freq: 32763.78hz: required trim 0xb1011_110010 (-4.218750) protected by security key. register dah rtc tick control register address bit label default description refer to r219 (dbh) security1 15:0 security[15:0] 0000_0000_0000_0000 the value 0013h needs to be set in this register to allow write access to the security locked registers. reset by state machine. register dbh security1
wm8350 production data w pd, march 2010, rev 4.2 318 register address bit label default description r efer to r224 (e0h) signal overrides 11 wall_fb_gt_batt_ovrde 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the analog_ovrde bit is set to 1. 10 usb_fb_gt_batt_ovrde 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the analog_ovrde bit is set to 1. 9 fll_ok_ovrde 0 0 = normal operation 1 = overrides the fll_ok 8 deb_tick_ovrde 0 overrides the ticks in the debounce block 0 = normal 1 = all ticks are overwritten with 16khz ticks 7 uvlo_b_ovrde 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the analog_ovrde bit is set to 1. 6 rtc_alarm_ovrde 0 override for rtc_alarm signal 0 = normal 1 = alarm = 1 3 line_gt_batt_ovrde 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the analog_ovrde bit is set to 1. 2 line_gt_vrtc_ovrde 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the analog_ovrde bit is set to 1. 1 usb_gt_line_ovrde 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the analog_ovrde bit is set to 1. 0 batt_gt_usb_ovrde 0 [no description available] register e0h signal overrides
production data wm8350 w pd, march 2010, rev 4.2 319 register address bit label default description refer to r225 (e1h) dcdc/ldo status 15 ls_sts 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the analog_ovrde bit is set to 1. reset by state machine. 11 ldo4_sts 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the analog_ovrde bit is set to 1. reset by state machine. 10 ldo3_sts 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the analog_ovrde bit is set to 1. reset by state machine. 9 ldo2_sts 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the analog_ovrde bit is set to 1. reset by state machine. 8 ldo1_sts 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the analog_ovrde bit is set to 1. reset by state machine. 5 dc6_sts 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the analog_ovrde bit is set to 1. reset by state machine. 4 dc5_sts 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the analog_ovrde bit is set to 1. reset by state machine. 3 dc4_sts 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the analog_ovrde bit is set to 1. reset by state machine. 2 dc3_sts 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the analog_ovrde bit is set to 1. reset by state machine. 1 dc2_sts 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the analog_ovrde bit is set to 1. reset by state machine. 0 dc1_sts 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the analog_ovrde bit is set to 1. reset by state machine. register e1h dcdc/ldo status
wm8350 production data w pd, march 2010, rev 4.2 320 register address bit label default description r efer to r226 (e2h) charger overides/statu s 15 chg_batt_hot_ovrde 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the analog_ovrde bit is set to 1. 14 chg_batt_cold_ovrde 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the analog_ovrde bit is set to 1. 11 chg_end_ovrde 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the analog_ovrde bit is set to 1. 2 chg_batt_lt_3p9_ovrde 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the analog_ovrde bit is set to 1. 1 chg_batt_lt_3p1_ovrde 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the analog_ovrde bit is set to 1. 0 chg_batt_lt_2p85_ovrde 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the analog_ovrde bit is set to 1. register e2h charger overides/status register address bit label default description refer to r227 (e3h) misc overrides 13 cs2_not_reg_ovrde 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the analog_ovrde bit is set to 1. 12 cs1_not_reg_ovrde 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the analog_ovrde bit is set to 1. 10 usb_limit_ovrde 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the analog_ovrde bit is set to 1. 7 aux_dcomp4_ovrde 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the analog_ovrde bit is set to 1. 6 aux_dcomp3_ovrde 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the analog_ovrde bit is set to 1. 5 aux_dcomp2_ovrde 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the analog_ovrde bit is set to 1. 4 aux_dcomp1_ovrde 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the analog_ovrde bit is set to 1.
production data wm8350 w pd, march 2010, rev 4.2 321 register address bit label default description refer to 3 hyst_uvlo_ok_ovrde 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the analog_ovrde bit is set to 1. 2 chip_gt115_ovrde 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the analog_ovrde bit is set to 1. 1 chip_gt140_ovrde 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the analog_ovrde bit is set to 1. register e3h misc overrides register address bit label default description refer to r228 (e4h) supply overrides/statu s 1 5 ovrv_dc6_ovrde 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the converter_ov_ovrde bit is set to 1. 3 ovrv_dc4_ovrde 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the converter_ov_ovrde bit is set to 1. 2 ovrv_dc3_ovrde 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the converter_ov_ovrde bit is set to 1. 0 ovrv_dc1_ovrde 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the converter_ov_ovrde bit is set to 1. register e4h supply overrides/status 1
wm8350 production data w pd, march 2010, rev 4.2 322 register address bit label default description refer to r229 (e5h) supply overrides/statu s 2 15 ovcr_ls_ovrde 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the converter_oc_ovrde bit is set to 1. 11 undv_ldo4_ovrde 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the converter_uv_ovrde bit is set to 1. 10 undv_ldo3_ovrde 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the converter_uv_ovrde bit is set to 1. 9 undv_ldo2_ovrde 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the converter_uv_ovrde bit is set to 1. 8 undv_ldo1_ovrde 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the converter_uv_ovrde bit is set to 1. 5 undv_dc6_ovrde 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the converter_uv_ovrde bit is set to 1. 4 undv_dc5_ovrde 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the converter_uv_ovrde bit is set to 1. 3 undv_dc4_ovrde 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the converter_uv_ovrde bit is set to 1. 2 undv_dc3_ovrde 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the converter_uv_ovrde bit is set to 1. 1 undv_dc2_ovrde 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the converter_uv_ovrde bit is set to 1. 0 undv_dc1_ovrde 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the converter_uv_ovrde bit is set to 1. register e5h supply overrides/status 2
production data wm8350 w pd, march 2010, rev 4.2 323 register address bit label default description refer to r230 (e6h) gpio pin status 15 1 1 unused never reset. 14 1 1 unused never reset. 13 1 1 unused never reset. 12 gp12_lvl 0 logic level of gpio12 pin input- reads the logic level of gpio pin writing ?0? clears gp12_eint output- write sets the value to drive the gpio pin 11 gp11_lvl 0 logic level of gpio11 pin input- reads the logic level of gpio pin writing ?0? clears gp11_eint output- write sets the value to drive the gpio pin 10 gp10_lvl 0 logic level of gpio10 pin input- reads the logic level of gpio pin writing ?0? clears gp10_eint output- write sets the value to drive the gpio pin 9 gp9_lvl 0 logic level of gpio9 pin input- reads the logic level of gpio pin writing ?0? clears gp9_eint output- write sets the value to drive the gpio pin 8 gp8_lvl 0 logic level of gpio8 pin input- reads the logic level of gpio pin writing ?0? clears gp8_eint output- write sets the value to drive the gpio pin 7 gp7_lvl 0 logic level of gpio7 pin input- reads the logic level of gpio pin writing ?0? clears gp7_eint output- write sets the value to drive the gpio pin 6 gp6_lvl 0 logic level of gpio6 pin input- reads the logic level of gpio pin writing ?0? clears gp6_eint
wm8350 production data w pd, march 2010, rev 4.2 324 register address bit label default description refer to output- write sets the value to drive the gpio pin 5 gp5_lvl 0 logic level of gpio5 pin input- reads the logic level of gpio pin writing ?0? clears gp5_eint output- write sets the value to drive the gpio pin 4 gp4_lvl 0 logic level of gpio4 pin input- reads the logic level of gpio pin writing ?0? clears gp4_eint output- write sets the value to drive the gpio pin 3 gp3_lvl 0 logic level of gpio3 pin input- reads the logic level of gpio pin writing ?0? clears gp3_eint output- write sets the value to drive the gpio pin 2 gp2_lvl 0 logic level of gpio2 pin input- reads the logic level of gpio pin writing ?0? clears gp2_eint output- write sets the value to drive the gpio pin 1 gp1_lvl 0 logic level of gpio1 pin input- reads the logic level of gpio pin writing ?0? clears gp1_eint output- write sets the value to drive the gpio pin 0 gp0_lvl 0 logic level of gpio0 pin input- reads the logic level of gpio pin writing ?0? clears gp0_eint output- write sets the value to drive the gpio pin register e6h gpio pin status
production data wm8350 w pd, march 2010, rev 4.2 325 register address bit label default description r efer to r231 (e7h) comparotor overrides 15 usb_fb_ovrde 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the analog_ovrde bit is set to 1. 14 wall_fb_ovrde 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the analog_ovrde bit is set to 1. 13 batt_fb_ovrde 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the analog_ovrde bit is set to 1. 11 codec_jck_det_l_ovrde 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the analog_ovrde bit is set to 1. 10 codec_jck_det_r_ovrde 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the analog_ovrde bit is set to 1. 9 codec_micscd_ovrde 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the analog_ovrde bit is set to 1. 8 codec_micd_ovrde 0 readback of the raw signal value. allow direct control of this signal's input to the debounce logic when the analog_ovrde bit is set to 1. register e7h comparotor overrides register address bit label default description refer to r233 (e9h) state machine status 10:8 usb_sm[2:0] 000 readback tell you what state the usb state machine is in. this is useful for debugging your setup. 0001 = 100ma slave 0101 = 500ma slave 0100 = suspend 0010 = master line 0110 = master dcdc 6:4 chg_sm[2:0] 000 readback tell you what state the charger state machine is in. this is useful for debugging your setup. 0000 = off 0001 = trickle 0010 = trickle_choke 0011 = trickle_overtemp 0100 = fast 0110 = fast_choke 0101 = fast_overtemp 3:0 main_sm[3:0] 0000 readback tell you what state the main state machine is in. this is useful for debugging your setup. 0010 = off 1101 = pre-active 1100 = hibernate 1111 = active register e9h state machine status
wm8350 production data w pd, march 2010, rev 4.2 326 register address bit label default description refer to r248 (f8h) dcdc1 test controls 4 dc1_force_pwm 0 force dc-dc1 pwm mode 0 = normal dc-dc operation 1 = force dc-dc pwm mode reset by state machine. register f8h dcdc1 test controls register address bit label default description refer to r250 (fah) dcdc3 test controls 4 dc3_force_pwm 0 force dc-dc3 pwm mode 0 = normal dc-dc operation 1 = force dc-dc pwm mode reset by state machine. register fah dcdc3 test controls register address bit label default description refer to r251 (fbh) dcdc4 test controls 4 dc4_force_pwm 0 force dc-dc4 pwm mode 0 = normal dc-dc operation 1 = force dc-dc pwm mode reset by state machine. register fbh dcdc4 test controls register address bit label default description refer to r253 (fdh) dcdc6 test controls 4 dc6_force_pwm 0 force dc-dc6 pwm mode 0 = normal dc-dc operation 1 = force dc-dc pwm mode reset by state machine. register fdh dcdc6 test controls
production data wm8350 w pd, march 2010, rev 4.2 327 28 digital filter characteristics parameter test conditions min typ max unit adc filter passband +/- 0.025db 0 0.454fs -6db 0.5fs passband ripple +/- 0.025 db stopband 0.546fs stopband attenuation f > 0.546fs -60 db group delay 21/fs adc high pass filter high pass filter corner frequency -3db 3.7 hz -0.5db 10.4 -0.1db 21.6 dac filter passband +/- 0.035db 0 0.454fs -6db 0.5fs passband ripple +/-0.035 db stopband 0.546fs stopband attenuation f > 0.546fs -55 db group delay 29/fs terminology 1. stop band attenuation (db) ? the degree to which the frequency spectrum is attenuated (outside audio band) 2. pass-band ripple ? any variation of the frequency response in the pass-band region 28.1 dac filter responses ma gnitude( d b) 0 4.41k 8.82k 13.23k 17.64k 22.05k 26.46k 30.87k 35.28k 39.69k 44.1k -140 -130 -120 -110 -100 -90 -80 -70 -60 -50 -40 -30 -20 -10 0 10 ma gnitude( db) 0 2.205k 4.41k 6.615k 8.82k 11.025k 13.23k 15.435k 17.64k 19.845k 22.05k -5m -2m 999.99u 4m 7m 10m 13m 16m 19m 22m 25m 28m 31m 34m 37m 40m figure 81 dac digital filter frequency response (normal mode) figure 82 dac digital filter ripple (normal mode)
wm8350 production data w pd, march 2010, rev 4.2 328 ma gnitude( d b) 0 4.41k 8.82k 13.23k 17.64k 22.05k 26.46k 30.87k 35.28k 39.69k 44.1k -170 -160 -150 -140 -130 -120 -110 -100 -90 -80 -70 -60 -50 -40 -30 -20 -10 0 10 ma gnitude(db) 0 2.205k 4.41k 6.615k 8.82k 11.025k 13.23k 15.435k 17.64k 19.845k 22.05k -0.5 -0.45 -0.4 -0.35 -0.3 -0.25 -0.2 -0.15 -100m -50m 0 50m figure 83 dac digital filter frequency response (sloping stopband mode) figure 84 dac digital filter ripple (sloping stopband mode) 28.2 adc filter responses magnitude (db) up to fs -140 -120 -100 -80 -60 -40 -20 0 20 0.00 0.25 0.50 0.75 frequency magnitude (db): passband ripple -0.1 -0.08 -0.06 -0.04 -0.02 0 0.02 0.04 0.06 0.08 0.1 0.00 0.25 frequency figure 85 adc digital filter frequency response figure 86 adc digital filter ripple
production data wm8350 w pd, march 2010, rev 4.2 329 29 applications information 29.1 typical connections backup battery 32khz /on /rst vrtc x1 x2 *32khz /irq sdata sclk control i/f 5v tolerant ngate2 l2 usb otg supply usb power in/out usb to system in1rn in2r micbias in1rp 5v line / charger / battery line pv1 vp5 pv3 pv4 ldovdd pvdd in2l in1lp in1ln in3r in3l hpgnd refgnd dgnd pgnd pg n gnd battery batt vp5 aux3 wallfb aux4 aux2 aux1 conf0 vmid conf1 gnd or vrtc cref rref line or headphone output camera flash or backlight leds *gpio capability or other alternate function hpvdd dacdata lrclk bitclk adcdata avdd vout2 vout1 out1l out1r vout3 vinb vout4 out2l out2r ip op cap-less out3 out4 *isinkd *isinke *isinkc/ch_ind isinka isinkb fb5 ngate5 l5 line, dc/dc1 or dc/dc3 digital audio i/f mclk audio ref: 5 to 50mhz to sub-system/s led or flash supply r1 r2 memory supply fb3 l3 dcvdd dbvdd wm8350 gpio[0:11] digital supply fb4 l4 processor core supply fb1 l1 digital peripheral supply fb6 l6 pv6 2.7v 2.7v hivdd audio inputs fb2 vina vinb line / dc-dc vout figure 87 wm8350 typical connections diagram for detailed schematics, bill of materials and recommended external components refer to the wm8350 evaluation board users manual.
wm8350 production data w pd, march 2010, rev 4.2 330 29.2 voltage reference (vref) components a decoupling capacitor is required between cref and refgnd; a 2.2uf x5r capacitor is recommended. a reference resistor is required between rref and refgnd; a 100k (1%) resistor is recommended. 29.3 dc-dc (step-down) converter external components the recommended connections to the dc-dc (step-down) converters are illustrated in figure 88. figure 88 dc-dc (step-down) converters external components when selecting suitable capacitors, is it imperative that the effective capacitance is within the required limits at the applicable input/output voltage of the converter. it should be noted that some components? capacitance changes significantly depending on the dc voltage applied. ceramic x7r or x5r types are recommended. the choice of output capacitor for dc-dc1 and dc-dc6 varies depending on the required transient response. a value of 30 f is recommended in the first instance. larger values (up to 100 f) may be required for optimum performance under large load transient conditions. smaller values (down to 10 f) may be sufficient for a steady load in some applications. for layout and size reasons, users may choose to implement large values of output capacitance by connecting two or more capacitors in parallel. to ensure stable operation, the register fields dc1_cap and dc6_cap must be set according to the output capacitance, as detailed in table 155. address bit label default description r180 (b4h) 15:1 4 dc1_cap 00 dc-dc1 output capacitor 00 = 10uf, 30uf, 45uf 01 = 60uf, 85uf 10 = not used 11 = 100uf r195 (c3h) 15:1 4 dc6_cap 00 dc-dc6 output capacitor 00 = 10uf, 30uf, 45uf 01 = 60uf, 85uf 10 = not used 11 = 100uf table 155 register control for dc-dc1 and dc-dc6 output capacitor
production data wm8350 w pd, march 2010, rev 4.2 331 when selecting a suitable output inductor, the inductance value and the saturation current must be compatible with the operating conditions of the converter. the magnitude of the inductor current ripple is dependant on the inductor value and can be determined by the following equation: as a minimum requirement, the dc current rating should be equal to the maximum load current plus one half of the inductor current ripple: to be suitable for the application, the chosen inductor must have a saturation current that is higher than the peak inductor current given by the above equation. to maximise the converter efficiency, the inductor should also have a low dc resistance (dcr), resulting in minimum conduction losses. care should also be taken to ensure that the inductor is effective at the applicable operating temperature. wolfson recommends the following external components for use with dc-dc converters 1 and 6. note that the choice of output capacitor should be determined as described above. component value part number size l 2.2 h coilcraft lps3010-222ml (1.4a) c out 10 f murata grm219r60j106ke19b 0805 22 f murata grm21br60j226m 0805 47 f murata grm31cr60j476m 1206 100 f murata grm31cr60j107m 1206 c in 4.7 f murata grm188r60j475ke19d 0603 table 156 recommended external components - dc-dc1 and dc-dc6 wolfson recommends the following external components for use with dc-dc converters 3 and 4. component value part number size l 2.2 h murata lqm31pn2r2m00 (0.9a) 1206 c out 10 f murata grm219r60j106ke19b 0805 c in 4.7 f murata grm188r60j475ke19d 0603 table 157 recommended external components - dc-dc3 and dc-dc4
wm8350 production data w pd, march 2010, rev 4.2 332 29.4 dc-dc (step-up) converter external components the dc-dc (step-up) converters can operate as switches or as boost converters. in boost mode, they operate in one of three different modes, set by the dc2_fbsrc and dc5_fbsrc register fields. the following subsections describe each of these modes in turn. 29.4.1 dc-dc (step-up) converters - constant voltage mode constant voltage mode is selected by setting dcn_fbsrc[1:0] = 00, as described in section 14.6.4. the recommended connections to the dc-dc (step-up) converters in this mode are illustrated in figure 89. figure 89 dc-dc (step-up) converters external components - constant voltage mode the dc-dc (step-up) converters are capable of generating output voltages of up to 30v. the output voltage is determined by the two external resistors r1 and r2, which form a resistive divider between load connection and the voltage feedback pin fb2 or fb5. the output voltage is set as described in the following equation: setting r2 to 47k ? is recommended for most applications; r1 can be calculated using the following equation, given the required output voltage: when selecting suitable capacitors, is it imperative that the effective capacitance is within the required limits at the applicable input/output voltage of the converter. ceramic x7r or x5r types are recommended. the choice of output capacitor for dc-dc2 and dc-dc varies depending on the required output voltage. for a 20v output, 0.47 f is recommended. for a 5v output, 10 f is recommended.
production data wm8350 w pd, march 2010, rev 4.2 333 when selecting a suitable output inductor, the inductance value and the saturation current must be compatible with the operating conditions of the converter. the magnitude of the inductor current ripple is dependent on the inductor value and can be determined by the following equation: v out -v in l . f sw i l = i l = inductor ripple current = output voltage = input voltage = inductance = switching frequency (1mhz) v out v in l f sw the inductor current is also a function of the dc-dc converter maximum input current, which can be determined by the following equation: as a minimum requirement, the dc current rating should be equal to the maximum input current plus one half of the inductor current ripple. to be suitable for the application, the chosen inductor must have a saturation current that is higher than the peak inductor current given by the above equation. to maximise the converter efficiency, the inductor should also have a low dc resistance (dcr), resulting in minimum conduction losses. care should also be taken to ensure that the inductor is effective at the applicable operating temperature. see section 29.4.4 for recommended inductor, capacitor and fet component details.
wm8350 production data w pd, march 2010, rev 4.2 334 29.4.2 dc-dc (step-up) converters - constant current mode constant current mode is selected by setting dcn_fbsrc[1:0] as described in section 14.6.4. setting dcn_fbsrc[1:0] = 01 results in the dc converter controlling the current at isinka, whilst setting dcn_fbsrc[1:0] = 10 controls the current at isinkb. the recommended connections to the dc-dc (step-up) converters in this mode are illustrated in figure 90. figure 90 dc-dc (step-up) converters external components - constant current mode in the constant current mode, the dc-dc converter output voltage is controlled by the wm8350 in order to achieve the required current in isinka or isinkb. the required current is set by the csn_isel register fields, as described in section 16.2.2. a typical application for this mode would be a white led driver, where several leds are connected in series to achieve uniform brightness. the dc-dc (step-up) converters are capable of generating output voltages of up to 30v. the maximum output voltage is determined by the two external resistors r1 and r2, which form a resistive divider between load connection and the voltage feedback pin fb2 or fb5. the choice of resistors r1 and r2 follows the same equations as for the constant voltage mode (see section 29.4.1). note that, in constant current mode, the resistors determine the maximum output voltage. the actual voltage will be determined by the selected isink current, subject to the device limits. the choice of capacitors, inductor and fet in constant current mode is the same as for the constant voltage mode; see section 29.4.4 for specific recommended component details. when isinka or isinkb is used in conjunction with dc-dc converter 2 or 5, the isink should always be switched on before the dc-dc converter is switched on. conversely, the dc-dc converter should always be switched off before the isink is switched off.
production data wm8350 w pd, march 2010, rev 4.2 335 29.4.3 dc-dc (step-up) converters - usb mode usb mode is selected by setting dcn_fbsrc[1:0] = 11 as described in section 14.6.4. this mode generates a 5v output, suitable for usb interfaces. the recommended connections to the dc-dc (step-up) converters in this mode are illustrated in figure 91. figure 91 dc-dc (step-up) converters external components - usb mode in the usb mode, the dc-dc (step-up) converters use an internal resistor chain to control the output voltage. this results in a fixed 5v output, suitable for usb interfaces. the dc-dc (step-up) converters may be configured as usb otg supplement by setting usb_mstr = 1 as described in section 17.4. (the dc-dc converters usb mode must also be selected by setting dcn_fbsrc[1:0] = 11). the output of the applicable dc-dc converter should be connected to the usb pin in order to provide voltage feedback. the choice of capacitors, inductor and fet in constant current mode is the same as for the constant voltage mode; see section 29.4.4 for specific recommended component details. 29.4.4 dc-dc (step-up) converters recommended components wolfson recommends the following external components for use with dc-dc converters 2 and 5. note that the choice of output capacitor should be determined as described in section 29.4.1. component value part number size l 10 h taiyo yuden nr4012t100m (0.7a) c out 0.47 f murata grm21br71e474kc01l 0805 4.7 f murata grm188r60j475ke19d 0603 10 f murata grm219r60j106ke19b 0805 c in 4.7 f murata grm188r60j475ke19d 0603 fet on semiconductor nthd4n02f n-channel fetky table 158 recommended external components - dc-dc2 and dc-dc5
wm8350 production data w pd, march 2010, rev 4.2 336 29.5 ldo regulator external components the recommended connections to the ldo regulators are illustrated in figure 92. figure 92 ldo regulators external components when selecting suitable capacitors, is it imperative that the effective capacitance is within the required limits at the applicable input/output voltage of the converter. ceramic x7r or x5r types are recommended. wolfson recommends the following external components for use with ldo regulators 1, 2, 3 and 4. note that larger capacitors will improve load transient response and power supply rejection. a maximum of 10 f is possible at the output; a maximum of 1 f is possible at the input. component value part number size c out 1 f murata grm155r60j105ke19d 0402 c in 0.1 f phycomp 06032r104k7b2 0603 table 159 recommended external compone nts - ldo1, ldo2, ldo3 and ldo4
production data wm8350 w pd, march 2010, rev 4.2 337 29.6 pcb layout poor pcb layout will degrade the performance and be a contributory factor in emi, ground bounce and resistive voltage losses. poor regulation and instability can result. simple design rules can be implemented to negate these effects: external input and output capacitors should be placed as close to the device as possible using short wide traces between the external power components. route output voltage feedback on an inner plane away from inductor and lx nodes to minimise noise and magnetic interference. use a local ground island for each individual converter connected at a single point onto a fully flooded ground plane. current loop areas should be kept as small as possible with loop areas changing little during alternating switching cycles. studying the layout below shows, for example, dcdc1 layout with external components c16, l3, c17. the input capacitor, c16, is close into the ic and shares a small ground island with c17 the output capacitor. the inductor, l3, is then situated in close proximity to c17 to keep loop area small and current flowing in the same direction during alternating switching cycles. note also the use of short wide traces with all power tracking on a single (top) layer.
wm8350 production data w pd, march 2010, rev 4.2 338 30 package diagram dm040.b b: 129 ball bga plastic package 7 x 7 x 0.94 mm body, 0.50 mm ball pitch notes: 1. primary datum -z- and seating plane are defined by the spherical crowns of the solder balls. 2. this dimension includes stand-off height ?a1?. 3. dimension ?b? is measured at the maximum solder ball diameter, parallel to primary datum -z-. 4. a1 corner is identified by ink/laser mark on top package. 5. bilateral tolerance zone is applied to each side of the package body. 6. ?e? represents the basic solder ball grid pitch. 7. this drawing is subject to change without notice. 8. falls within jedec, mo-195 a1 0.28 0.24 0.2 b d d1 e e1 e 0.35 0.25 7.00 bsc 6.00 bsc 0.50 bsc 7.00 bsc 6.00 bsc 0.30 dimensions (mm) symbols min nom max note a 0.83 0.94 1.05 a2 0.63 0.70 0.77 0.10 aaa bbb ccc 0.08 0.15 tolerances of form and position ddd 0.05 6 3 y z ccc x detail 1 solder ball b z ddd detail 2 a1 z aaa z bbb z 1 a1 corner top view e z 0.10 2 x d 5 4 detail 2 a a2 2 z 0.10 2 x detail 1 e bottom view 6 1 98765432 10 11 12 13 a d c b j h g f e k l m n e e1 d1 side view ref: jedec, mo-195
production data wm8350 w pd, march 2010, rev 4.2 339 31 important notice wolfson microelectronics plc (?wolfson?) products and services are sold subject to wolfson?s terms and conditions of sale, delivery and payment supplied at the time of order acknowledgement. wolfson warrants performance of its products to the specifications in effect at the date of shipment. wolfson reserves the right to make changes to its products and specifications or to discontinue any product or service without notice. customers should therefore obtain the latest version of relevant information from wolfson to verify that the information is current. testing and other quality control techniques are utilised to the extent wolfson deems necessary to support its warranty. specific testing of all parameters of each device is not necessarily performed unless required by law or regulation. in order to minimise risks associated with customer applications, the customer must use adequate design and operating safeguards to minimise inherent or procedural hazards. wolfson is not liable for applications assistance or customer product design. the customer is solely responsible for its selection and use of wolfson products. wolfson is not liable for such selection or use nor for use of any circuitry other than circuitry entirely embodied in a wolfson product. wolfson?s products are not intended for use in life support systems, appliances, nuclear systems or systems where malfunction can reasonably be expected to result in personal injury, death or severe property or environmental damage. any use of products by the customer for such purposes is at the customer?s own risk. wolfson does not grant any licence (express or implied) under any patent right, copyright, mask work right or other intellectual property right of wolfson covering or relating to any combination, machine, or process in which its products or services might be or are used. any provision or publication of any third party?s products or services does not constitute wolfson?s approval, licence, warranty or endorsement thereof. any third party trade marks contained in this document belong to the respective third party owner. reproduction of information from wolfson datasheets is permissible only if reproduction is without alteration and is accompanied by all associated copyright, proprietary and other notices (including this notice) and conditions. wolfson is not liable for any unauthorised alteration of such information or for any reliance placed thereon. any representations made, warranties given, and/or liabilities accepted by any person which differ from those contained in this datasheet or in wolfson?s standard terms and conditions of sale, delivery and payment are made, given and/or accepted at that person?s own risk. wolfson is not liable for any such representations, warranties or liabilities or for any reliance pl aced thereon by any person. address: wolfson microelectronics plc westfield house 26 westfield road edinburgh eh11 2qb united kingdom tel :: +44 (0)131 272 7000 fax :: +44 (0)131 272 7001 email :: sales@wolfsonmicro.com


▲Up To Search▲   

 
Price & Availability of WM8350GEBV

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X